Module Name: src Committed By: mrg Date: Wed Oct 30 08:42:16 UTC 2013
Modified Files: src/usr.sbin/cpuctl/arch: i386.c Log Message: avoid uninitialised variable use. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/usr.sbin/cpuctl/arch/i386.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/cpuctl/arch/i386.c diff -u src/usr.sbin/cpuctl/arch/i386.c:1.46 src/usr.sbin/cpuctl/arch/i386.c:1.47 --- src/usr.sbin/cpuctl/arch/i386.c:1.46 Mon Oct 28 05:41:49 2013 +++ src/usr.sbin/cpuctl/arch/i386.c Wed Oct 30 08:42:16 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: i386.c,v 1.46 2013/10/28 05:41:49 msaitoh Exp $ */ +/* $NetBSD: i386.c,v 1.47 2013/10/30 08:42:16 mrg Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -57,7 +57,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: i386.c,v 1.46 2013/10/28 05:41:49 msaitoh Exp $"); +__RCSID("$NetBSD: i386.c,v 1.47 2013/10/30 08:42:16 mrg Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -1986,7 +1986,7 @@ cache_info_lookup(const struct x86_cache static void x86_print_cacheinfo(struct cpu_info *ci) { - const char *sep; + const char *sep = NULL; if (ci->ci_cinfo[CAI_ICACHE].cai_totalsize != 0 || ci->ci_cinfo[CAI_DCACHE].cai_totalsize != 0) {