Module Name:    src
Committed By:   rin
Date:           Wed Dec  6 14:05:14 UTC 2017

Modified Files:
        src/lib/libc/gen: fmtcheck.c

Log Message:
Fix possible use of uninitialized variable in case of WIN32 && !_WIN64.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/gen/fmtcheck.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/fmtcheck.c
diff -u src/lib/libc/gen/fmtcheck.c:1.14 src/lib/libc/gen/fmtcheck.c:1.15
--- src/lib/libc/gen/fmtcheck.c:1.14	Wed Dec  6 12:32:02 2017
+++ src/lib/libc/gen/fmtcheck.c	Wed Dec  6 14:05:14 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: fmtcheck.c,v 1.14 2017/12/06 12:32:02 rin Exp $	*/
+/*	$NetBSD: fmtcheck.c,v 1.15 2017/12/06 14:05:14 rin Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fmtcheck.c,v 1.14 2017/12/06 12:32:02 rin Exp $");
+__RCSID("$NetBSD: fmtcheck.c,v 1.15 2017/12/06 14:05:14 rin Exp $");
 #endif
 
 #include "namespace.h"
@@ -149,11 +149,13 @@ get_next_format_from_precision(const cha
 			f += 2;
 			modifier = MOD_QUAD;
 		}
-#ifdef _WIN64
 		else {
+#ifdef _WIN64
 			modifier = MOD_QUAD;
-		}
+#else
+			modifier = MOD_NONE;
 #endif
+		}
 		break;
 #endif
 	default:

Reply via email to