Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Fix possible use of uninitialized variable in c...
details: https://anonhg.NetBSD.org/src/rev/64772a74de58
branches: trunk
changeset: 357979:64772a74de58
user: rin <rin%NetBSD.org@localhost>
date: Wed Dec 06 14:05:14 2017 +0000
description:
Fix possible use of uninitialized variable in case of WIN32 && !_WIN64.
diffstat:
lib/libc/gen/fmtcheck.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 487d043cca05 -r 64772a74de58 lib/libc/gen/fmtcheck.c
--- a/lib/libc/gen/fmtcheck.c Wed Dec 06 13:55:31 2017 +0000
+++ b/lib/libc/gen/fmtcheck.c Wed Dec 06 14:05:14 2017 +0000
@@ -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 @@
f += 2;
modifier = MOD_QUAD;
}
+ else {
#ifdef _WIN64
- else {
modifier = MOD_QUAD;
+#else
+ modifier = MOD_NONE;
+#endif
}
-#endif
break;
#endif
default:
Home |
Main Index |
Thread Index |
Old Index