Module Name:    src
Committed By:   martin
Date:           Wed Oct 31 08:54:39 UTC 2012

Modified Files:
        src/usr.sbin/npf/npfctl: npfctl.c

Log Message:
gcc 4.1 is not smart enough to notice "arg" is only used when initialized
correctly and produces a "might be used unintialized" warning.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/npf/npfctl/npfctl.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/npf/npfctl/npfctl.c
diff -u src/usr.sbin/npf/npfctl/npfctl.c:1.21 src/usr.sbin/npf/npfctl/npfctl.c:1.22
--- src/usr.sbin/npf/npfctl/npfctl.c:1.21	Mon Oct 29 02:27:12 2012
+++ src/usr.sbin/npf/npfctl/npfctl.c	Wed Oct 31 08:54:39 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: npfctl.c,v 1.21 2012/10/29 02:27:12 rmind Exp $	*/
+/*	$NetBSD: npfctl.c,v 1.22 2012/10/31 08:54:39 martin Exp $	*/
 
 /*-
  * Copyright (c) 2009-2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: npfctl.c,v 1.21 2012/10/29 02:27:12 rmind Exp $");
+__RCSID("$NetBSD: npfctl.c,v 1.22 2012/10/31 08:54:39 martin Exp $");
 
 #include <sys/ioctl.h>
 #include <sys/stat.h>
@@ -307,7 +307,7 @@ npfctl_table(int fd, int argc, char **ar
 	npf_ioctl_table_t nct;
 	fam_addr_mask_t fam;
 	size_t buflen = 512;
-	char *cmd, *arg;
+	char *cmd, *arg = NULL; /* XXX gcc */
 	int n, alen;
 
 	/* Default action is list. */

Reply via email to