Status

Core Graveyard
Tracking
P3
normal
VERIFIED FIXED
19 years ago
2 years ago

People

(Reporter: Steve Lamm, Assigned: John Bandhauer)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

19 years ago
http://tinderbox.mozilla.org/seamonkey/warnings.html#jband

I do not know if your warnings would ever be a problem, but here is a simple
patch to safely quiet the warnings,

Index: xpctest_array.cpp
===================================================================
RCS file: /cvsroot/mozilla/js/src/xpconnect/tests/components/xpctest_array.cpp,v
retrieving revision 1.4
diff -u -r1.4 xpctest_array.cpp
--- xpctest_array.cpp   1999/10/06 21:35:27     1.4
+++ xpctest_array.cpp   1999/10/07 21:34:17
@@ -275,7 +275,8 @@
     if(!out)
         return NS_ERROR_OUT_OF_MEMORY;

-    for(PRUint32 k = 0; k < *count; k++)
+    PRUint32 k = 0;
+    for(; k < *count; k++)
         out[k*2] = out[(k*2)+1] = (*str)[k];
     out[k*2] = '\0';
     nsAllocator::Free(*str);
(Assignee)

Comment 1

19 years ago
Already have that in my tree. Thanks.
(Reporter)

Updated

19 years ago
QA Contact: leger → slamm
(Reporter)

Comment 2

19 years ago
Cool. You can count me as a reviewer. =) Now you even have a bug for the
checkin.
(Assignee)

Updated

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
(Assignee)

Comment 3

19 years ago
checked in. Thanks.
(Reporter)

Updated

19 years ago
Status: RESOLVED → VERIFIED
(Reporter)

Comment 4

19 years ago
Thank you. Wow, I just noticed that you can vote for bugs now. That is an
interesting concept.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.