From 47da54b403f4a0a6c71da4c75f150407b875a9ef Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Fri, 17 Jan 2003 02:49:11 +0000 Subject: Bug 145029: fixed compiler warnings (mostly "xxx might be used uninitialized"). --- security/nss/lib/cryptohi/dsautil.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'security/nss/lib/cryptohi') 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); -- cgit v1.2.1