summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-11-08 10:50:29 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-11-08 10:50:29 +0000
commit5fdaf8bc55f72d00026ef913c041a85fb30b90cf (patch)
tree1601e33c48cd9728d4f25869850026a6e1514017 /sbin/pfctl
parentd38d4dd8ca2b9c154b1ba64df3c93bb592b5042e (diff)
init buf to NULL just in case...
there isn't a single codepath where it can remain uninitialized, but this might prevent a stupid bug if we change something later
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index cca8648869a..7e69f6f6098 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.182 2002/11/07 17:47:33 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.183 2002/11/08 10:50:28 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2914,7 +2914,7 @@ host(char *s, int mask)
struct in_addr ina;
struct addrinfo hints, *res0, *res;
int bits, error, v4mask, v6mask;
- char *buf;
+ char *buf = NULL;
if (ifa_exists(s) || !strncmp(s, "self", IFNAMSIZ)) {
/* interface with this name exists */