diff options
author | wtc%netscape.com <devnull@localhost> | 2003-01-17 02:49:11 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2003-01-17 02:49:11 +0000 |
commit | 47da54b403f4a0a6c71da4c75f150407b875a9ef (patch) | |
tree | bf72249f0b444f70048fb7055cf3fdabad5f8eed /security/nss/lib/cryptohi | |
parent | 4008f0f9011d23d46f9c5734bb86655c7fbf8fd8 (diff) | |
download | nss-hg-47da54b403f4a0a6c71da4c75f150407b875a9ef.tar.gz |
Bug 145029: fixed compiler warnings (mostly "xxx might be used
uninitialized").
Diffstat (limited to 'security/nss/lib/cryptohi')
-rw-r--r-- | security/nss/lib/cryptohi/dsautil.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/security/nss/lib/cryptohi/dsautil.c b/security/nss/lib/cryptohi/dsautil.c index c592ec7df..504e69907 100644 --- a/security/nss/lib/cryptohi/dsautil.c +++ b/security/nss/lib/cryptohi/dsautil.c @@ -66,10 +66,9 @@ DSAU_ConvertUnsignedToSigned(SECItem *dest, SECItem *src) unsigned char *pSrc = src->data; unsigned char *pDst = dest->data; unsigned int cntSrc = src->len; - unsigned char c; /* skip any leading zeros. */ - while (cntSrc && !(c = *pSrc)) { + while (cntSrc && !(*pSrc)) { pSrc++; cntSrc--; } @@ -79,7 +78,7 @@ DSAU_ConvertUnsignedToSigned(SECItem *dest, SECItem *src) return; } - if (c & 0x80) + if (*pSrc & 0x80) *pDst++ = 0; PORT_Memcpy(pDst, pSrc, cntSrc); |