summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2009-06-19 19:07:28 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2009-06-19 19:07:28 +0000
commit728b24c6f35e09a7e8885e4a670f2a134d82b9e7 (patch)
tree164ec92d54da4fe917376fa5e9e385ceb485aa10 /lib
parentc21ad768f77e67197859c3eb28bfc36e5f83cd17 (diff)
Quiet a gcc warning
Diffstat (limited to 'lib')
-rw-r--r--lib/libkvm/kvm_file2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libkvm/kvm_file2.c b/lib/libkvm/kvm_file2.c
index 680a3123f22..f055be334f9 100644
--- a/lib/libkvm/kvm_file2.c
+++ b/lib/libkvm/kvm_file2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_file2.c,v 1.4 2009/06/11 17:00:31 chl Exp $ */
+/* $OpenBSD: kvm_file2.c,v 1.5 2009/06/19 19:07:27 millert Exp $ */
/*
* Copyright (c) 2009 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -46,7 +46,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: kvm_file2.c,v 1.4 2009/06/11 17:00:31 chl Exp $";
+static char *rcsid = "$OpenBSD: kvm_file2.c,v 1.5 2009/06/19 19:07:27 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -204,7 +204,7 @@ kvm_deadfile2_byfile(kvm_t *kd, int op, int arg, size_t esize, int *cnt)
struct nlist nl[3], *p;
int buflen = kd->arglen, n = 0;
char *where = kd->argspc;
- struct kinfo_file2 *kf;
+ struct kinfo_file2 *kf = NULL;
struct file *fp, file;
struct filelist filehead;
int nfiles;
@@ -263,7 +263,7 @@ kvm_deadfile2_byid(kvm_t *kd, int op, int arg, size_t esize, int *cnt)
struct nlist nl[5], *np;
int buflen = kd->arglen, n = 0;
char *where = kd->argspc;
- struct kinfo_file2 *kf;
+ struct kinfo_file2 *kf = NULL;
struct file *fp, file;
struct filelist filehead;
struct filedesc0 filed0;