From d95dbb3136cc8c7dfecf945d8fd916ea197c487e Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 2 Nov 2009 20:18:50 +0000 Subject: Ensure 'kvm' is always initialized. If "-M" was not specified and the garbage value on the stack was not zero, then 'ddb capture' would try to use the garbage value as a kvm_t pointer. MFC after: 1 week --- sbin/ddb/ddb_capture.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sbin/ddb/ddb_capture.c') diff --git a/sbin/ddb/ddb_capture.c b/sbin/ddb/ddb_capture.c index ffc9b91..370fc00 100644 --- a/sbin/ddb/ddb_capture.c +++ b/sbin/ddb/ddb_capture.c @@ -204,6 +204,7 @@ ddb_capture(int argc, char *argv[]) mflag = NULL; nflag = NULL; + kvm = NULL; while ((ch = getopt(argc, argv, "M:N:")) != -1) { switch (ch) { case 'M': -- cgit v1.1