Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/memswitch Initialize class and node in modify_singl...
details: https://anonhg.NetBSD.org/src/rev/fc4120845da8
branches: trunk
changeset: 581950:fc4120845da8
user: he <he%NetBSD.org@localhost>
date: Sat Jun 11 18:42:56 2005 +0000
description:
Initialize class and node in modify_single(), as their initial assignment
appears to depend on the passed function parameters.
diffstat:
usr.sbin/memswitch/memswitch.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ac1848c52319 -r fc4120845da8 usr.sbin/memswitch/memswitch.c
--- a/usr.sbin/memswitch/memswitch.c Sat Jun 11 18:18:59 2005 +0000
+++ b/usr.sbin/memswitch/memswitch.c Sat Jun 11 18:42:56 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: memswitch.c,v 1.8 2004/01/05 23:23:38 jmmv Exp $ */
+/* $NetBSD: memswitch.c,v 1.9 2005/06/11 18:42:56 he Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -209,7 +209,7 @@
const char *expr;
{
int i, l, n;
- char *class, *node;
+ char *class = NULL, *node = NULL;
const char *value;
char valuestr[MAXVALUELEN];
Home |
Main Index |
Thread Index |
Old Index