=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/if.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -r1.72 -r1.73 --- src/usr.bin/netstat/if.c 2015/02/09 12:25:03 1.72 +++ src/usr.bin/netstat/if.c 2015/02/12 13:06:47 1.73 @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.72 2015/02/09 12:25:03 claudio Exp $ */ +/* $OpenBSD: if.c,v 1.73 2015/02/12 13:06:47 sthen Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* @@ -503,7 +503,7 @@ struct if_data *ifd; struct sockaddr *sa, *rti_info[RTAX_MAX]; struct sockaddr_dl *sdl; - char *buf, *next, *lim; + char *buf = NULL, *next, *lim; char name[IFNAMSIZ]; size_t len; int takeit = 0;