Closed
Bug 45243
Opened 26 years ago
Closed 26 years ago
warning in macbuild shows bug (unintended assignment)
Categories
(Core :: Security, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: Brade, Assigned: javi)
References
Details
Scanning the list of warnings in the macbuild, I see a warning that appears to be
a real bug. Please fix it as soon as possible.
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/extensions/psm-glue/src/
nsCrypto.cpp&mark=1612#1602
Possible unwanted assignment
1610 *aReturn = JS_OK_ADD_MOD;
1611 goto loser;
1612 } else if (status = (CMTStatus)-2) {
1613 *aReturn = JS_ERR_ADD_DUPLICATE_MOD;
1614 goto loser;
Other warnings which should also be cleaned up include:
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/extensions/psm-glue/src/
nsCrypto.cpp&mark=1260#1250
Variable / argument 'msg' is not used in function
1258 NS_IMETHODIMP
1259 nsCryptoRunnable::Run() {
1260 char msg[512];
1261 nsIScriptContext *scriptCx;
1262 nsresult rv;
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/extensions/psm-glue/src/
nsCrypto.cpp&mark=1261#1251
Variable / argument 'scriptCx' is not used in function
1259 nsCryptoRunnable::Run() {
1260 char msg[512];
1261 nsIScriptContext *scriptCx;
1262 nsresult rv;
1263 PRBool reportErrors = PR_FALSE;
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/extensions/psm-glue/src/
nsCrypto.cpp&mark=1264#1254
Variable / argument 'obj' is not used in function
1262 nsresult rv;
1263 PRBool reportErrors = PR_FALSE;
1264 JSObject *obj;
1265 JSStackFrame *fp=nsnull;
1266 nsCrypto *cryptoObject;
| Assignee | ||
Comment 1•26 years ago
|
||
These modifications have been checked in.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
OS: All
You need to log in
before you can comment on or make changes to this bug.
Description
•