]> Zhao Yanbai Git Server - minix.git/commitdiff
fixing warning about uninitialized variable in libsys/vprintf.c 29/129/3
authorLionel Sambuc <lionel@minix3.org>
Mon, 26 Nov 2012 16:02:57 +0000 (17:02 +0100)
committerLionel Sambuc <lionel@minix3.org>
Fri, 7 Dec 2012 12:58:06 +0000 (13:58 +0100)
Change-Id: I8764a57b502edc3d50a32b3e2db56c4f94592309

lib/libsys/vprintf.c

index e66908966bd70bd448fa5573163f45845abb6742..00198065cfe33be6e5ecc5bea6de163e9d8631a8 100644 (file)
@@ -28,7 +28,7 @@ int vprintf(const char *fmt, va_list argp)
        char *x2c;
        char *p;
        long long i;
-       unsigned long long u;
+       unsigned long long u = 0;
        char temp[8 * sizeof(long long) / 3 + 2];
 
        while ((c= *fmt++) != 0) {