From: Todd C. Miller Date: Mon, 13 Sep 2010 16:19:03 +0000 (-0400) Subject: Quiet bogus compiler warnings. X-Git-Tag: SUDO_1_7_5~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=200df890e0ba60e2e7a7e7af47e649386cb6cc22;p=sudo Quiet bogus compiler warnings. --HG-- branch : 1.7 --- diff --git a/snprintf.c b/snprintf.c index 2ef67356a..2ccbd14ff 100644 --- a/snprintf.c +++ b/snprintf.c @@ -291,16 +291,16 @@ xxxprintf(strp, strsize, alloc, fmt0, ap) int width; /* width from format (%8d), or 0 */ int prec; /* precision from format (%.3d), or -1 */ char sign; /* sign prefix (' ', '+', '-', or \0) */ - unsigned long ulval; /* integer arguments %[diouxX] */ + unsigned long ulval = 0; /* integer arguments %[diouxX] */ #ifdef HAVE_LONG_LONG_INT - unsigned long long uqval; /* %q (quad) integers */ + unsigned long long uqval = 0; /* %q (quad) integers */ #endif int base; /* base for [diouxX] conversion */ int dprec; /* a copy of prec if [diouxX], 0 otherwise */ int fieldsz; /* field size expanded by sign, etc */ int realsz; /* field size expanded by dprec */ int size; /* size of converted field or string */ - char *xdigs; /* digits for [xX] conversion */ + char *xdigs = ""; /* digits for [xX] conversion */ char buf[BUF]; /* space for %c, %[diouxX], %[eEfgG] */ char ox[2]; /* space for 0x hex-prefix */ char *str; /* pointer to string to fill */