Closed Bug 443760 Opened 16 years ago Closed 16 years ago

Extra semicolon in SeqDatabase makes static analysis tool suspicious

Categories

(NSS :: Libraries, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
3.12.1

People

(Reporter: jruderman, Assigned: jruderman)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
From the reporter of bug 440771: dbm/tests/lots.c:211 while(!(status = (database->seq) (database, &key, &data, R_NEXT))); ; /* null body */ Removing the semicolon from the first line won't change the compiled code, since the body of the while loop is empty anyway. So I don't think I need code review. Which repository do mozilla/dbm patches go into? mozilla-central?
Status: NEW → ASSIGNED
(In reply to comment #0) > while(!(status = (database->seq) (database, &key, &data, R_NEXT))); > ; /* null body */ This might be more readable as a do loop: do { status = (database->seq) (database, &key, &data, R_NEXT); } while (!status);
Comment on attachment 328234 [details] [diff] [review] patch r=wtc. The master source of mozilla/dbm is in the CVS repository. It is now maintained by the NSS team.
Attachment #328234 - Flags: review+
Thanks, wtc. Can you check it in for me or CC someone who can?
I checked in your patch on the NSS trunk for NSS 3.12.1. Checking in lots.c; /cvsroot/mozilla/dbm/tests/lots.c,v <-- lots.c new revision: 3.15; previous revision: 3.14 done Please don't check in this patch in mozilla-central. We want to keep the copy of NSS in mozilla-central identical to snapshots provided by the NSS team.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Component: Testing → Libraries
Product: Core → NSS
Resolution: --- → FIXED
Target Milestone: --- → 3.12.1
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: