summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2004-09-10 13:42:24 +0000
committermaxim <maxim@FreeBSD.org>2004-09-10 13:42:24 +0000
commite510005b1a940dd73ddd385cce471aaeea507ab2 (patch)
treef15781dcfcd98e98a6782abb6565b4404dae249f
parentd99f64fa38a96374a92ed6cf0c85f54531c57c53 (diff)
downloadFreeBSD-src-e510005b1a940dd73ddd385cce471aaeea507ab2.zip
FreeBSD-src-e510005b1a940dd73ddd385cce471aaeea507ab2.tar.gz
o Initialize a local variable and make gcc happy.
PR: bin/71485 Submitted by: Jukka A. Ukkonen
-rw-r--r--sbin/ipfw/ipfw2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c
index 37e3ec3..c7ccfd5 100644
--- a/sbin/ipfw/ipfw2.c
+++ b/sbin/ipfw/ipfw2.c
@@ -1734,6 +1734,8 @@ list(int ac, char *av[], int show_counters)
const int ocmd = do_pipe ? IP_DUMMYNET_GET : IP_FW_GET;
int nalloc = 1024; /* start somewhere... */
+ last = 0;
+
if (test_only) {
fprintf(stderr, "Testing only, list disabled\n");
return;
OpenPOWER on IntegriCloud