Closed
Bug 213903
Opened 22 years ago
Closed 22 years ago
unused variables in pcertdb.c
Categories
(NSS :: Libraries, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: bishakhabanerjee)
Details
Attachments
(1 file)
|
4.27 KB,
patch
|
Details | Diff | Splinter Review |
/swap/BEOS/mozilla/security/nss/lib/softoken/pcertdb.c: In function
`nsslowcert_UpdateSubjectEmailAddr':
/swap/BEOS/mozilla/security/nss/lib/softoken/pcertdb.c:2665: warning: unused
variable `delold'
/swap/BEOS/mozilla/security/nss/lib/softoken/pcertdb.c:2665: warning: unused
variable `save'
/swap/BEOS/mozilla/security/nss/lib/softoken/pcertdb.c: In function
`nsslowcert_SaveSMimeProfile':
/swap/BEOS/mozilla/security/nss/lib/softoken/pcertdb.c:5238: warning: unused
variable `entry'
Comment 2•22 years ago
|
||
Bishakha, please remove the unused variables, but don't
replace the tabs with spaces.
Assignee: wtc → bishakhabanerjee
| Assignee | ||
Comment 3•22 years ago
|
||
Patch id=128516 does more than remove unused variables and change tabs to spaces.
Specifically, the following lines:
- if (emailAddr) {
- emailAddr = nsslowcert_FixupEmailAddr(emailAddr);
- if (emailAddr == NULL) {
- return SECFailure;
- }
- } else {
- return SECSuccess;
+ if (!emailAddr) {
+ return SECSuccess;
+ }
+ emailAddr = nsslowcert_FixupEmailAddr(emailAddr);
+ if (emailAddr == NULL) {
+ return SECFailure;
}
Checking in per wtc the following patch that just removes unused varaibles.
retrieving revision 1.45
diff -u -r1.45 pcertdb.c
--- pcertdb.c 5 Mar 2003 01:02:03 -0000 1.45
+++ pcertdb.c 28 Jul 2003 22:52:03 -0000
@@ -2662,7 +2662,6 @@
nsslowcert_UpdateSubjectEmailAddr(NSSLOWCERTCertDBHandle *dbhandle,
SECItem *derSubject, char *emailAddr, nsslowcertUpdateType updateType)
{
- PRBool save = PR_FALSE, delold = PR_FALSE;
certDBEntrySubject *entry = NULL;
int index = -1, i;
SECStatus rv;
@@ -5235,7 +5234,6 @@
nsslowcert_SaveSMimeProfile(NSSLOWCERTCertDBHandle *dbhandle, char *emailAddr,
SECItem *derSubject, SECItem *emailProfile, SECItem *profileTime)
{
- certDBEntrySMime *entry = NULL;
SECStatus rv = SECFailure;;
rv = db_BeginTransaction(dbhandle->permCertDB);
| Assignee | ||
Comment 4•22 years ago
|
||
Patch checked in:
Checking in pcertdb.c;
/cvsroot/mozilla/security/nss/lib/softoken/pcertdb.c,v <-- pcertdb.c
new revision: 1.46; previous revision: 1.45
done
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
sorry about that, it's a habbit, the logic in that block was convoluted.
You need to log in
before you can comment on or make changes to this bug.
Description
•