Closed Bug 610809 Opened 9 years ago Closed 7 years ago

warning: ‘oldestTime’ may be used uninitialized in nsCookieService.cpp:3222

Categories

(Core :: Networking: Cookies, defect)

x86
Linux
defect
Not set

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- -

People

(Reporter: jdm, Assigned: jdm)

References

(Blocks 1 open bug)

Details

(Whiteboard: [build_warning])

PRInt64 oldestTime;
...
for (nsCookieEntry::IndexType i = 0; i < cookies.Length(); ++i) {
  ...
  if (!aIter.entry || oldestTime > cookie->LastAccessed()) {
    oldestTime = cookie->LastAccessed();

It should probably be initialized.
It's a bogus warning. (Exercise for the reader!)

I'd take a patch, though, just to shut it up. :)

(Congrats!)
Assignee: nobody → josh
Status: NEW → ASSIGNED
blocking2.0: --- → -
This was fixed in Bug 605180.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.