Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/npf/npfctl gcc 4.1 is not smart enough to notice "a...
details: https://anonhg.NetBSD.org/src/rev/6bef469284e6
branches: trunk
changeset: 782373:6bef469284e6
user: martin <martin%NetBSD.org@localhost>
date: Wed Oct 31 08:54:39 2012 +0000
description:
gcc 4.1 is not smart enough to notice "arg" is only used when initialized
correctly and produces a "might be used unintialized" warning.
diffstat:
usr.sbin/npf/npfctl/npfctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8f028e85d694 -r 6bef469284e6 usr.sbin/npf/npfctl/npfctl.c
--- a/usr.sbin/npf/npfctl/npfctl.c Wed Oct 31 06:53:14 2012 +0000
+++ b/usr.sbin/npf/npfctl/npfctl.c Wed Oct 31 08:54:39 2012 +0000
@@ -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 @@
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. */
Home |
Main Index |
Thread Index |
Old Index