pciconf(8): Raise WARNS to 6 and fix warning.
authorSascha Wildner <saw@online.de>
Sun, 12 Apr 2009 19:41:51 +0000 (21:41 +0200)
committerSascha Wildner <saw@online.de>
Sun, 12 Apr 2009 19:41:51 +0000 (21:41 +0200)
usr.sbin/pciconf/Makefile
usr.sbin/pciconf/pciconf.c

index 2023eb7..19045bf 100644 (file)
@@ -5,6 +5,6 @@
 PROG=  pciconf
 MAN=   pciconf.8
 CFLAGS+= -I${.CURDIR}/../../sys
-WARNS?=        4
+WARNS?=        6
 
 .include <bsd.prog.mk>
index 32a4f71..c9ce58e 100644 (file)
@@ -450,7 +450,7 @@ static struct pcisel
 getsel(const char *str)
 {
        char *parse_buf, *ep;
-       struct pcisel sel;
+       struct pcisel sel = { .pc_func = 0};
 
        parse_buf = strdup(str);
        ep = parse_buf;