diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-10-17 18:49:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-10-17 18:49:51 +0000 |
commit | 30e36c01ea8ac22226490c286291d7345fb78a4a (patch) | |
tree | 81ec3094d3fa7907c31672a0adff1d82685cb553 /sbin | |
parent | fc2895a8aa35b673d67a549710a9fc3b4556c454 (diff) |
init bufdata to NULL for when compiled without KVM support
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dmesg/dmesg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c index 6bd9c0555f7..d721c99ade4 100644 --- a/sbin/dmesg/dmesg.c +++ b/sbin/dmesg/dmesg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dmesg.c,v 1.20 2006/12/24 00:47:27 djm Exp $ */ +/* $OpenBSD: dmesg.c,v 1.21 2008/10/17 18:49:50 deraadt Exp $ */ /* $NetBSD: dmesg.c,v 1.8 1995/03/18 14:54:49 cgd Exp $ */ /*- @@ -63,7 +63,7 @@ main(int argc, char *argv[]) int ch, newl, skip, i; char *p; struct msgbuf cur; - char *memf, *nlistf, *bufdata; + char *memf, *nlistf, *bufdata = NULL; char buf[5]; memf = nlistf = NULL; |