Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/cpuctl/arch avoid uninitialised variable use.
details: https://anonhg.NetBSD.org/src/rev/27ed886951d2
branches: trunk
changeset: 791001:27ed886951d2
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Oct 30 08:42:16 2013 +0000
description:
avoid uninitialised variable use.
diffstat:
usr.sbin/cpuctl/arch/i386.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5ed66a63fdcc -r 27ed886951d2 usr.sbin/cpuctl/arch/i386.c
--- a/usr.sbin/cpuctl/arch/i386.c Wed Oct 30 08:41:57 2013 +0000
+++ b/usr.sbin/cpuctl/arch/i386.c Wed Oct 30 08:42:16 2013 +0000
@@ -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 @@
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) {
Home |
Main Index |
Thread Index |
Old Index