From 23cf1900e07856ee6a957a3ce30896e400eb1a40 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 17 Nov 2009 15:28:14 +0000 Subject: [PATCH] MFC 198820: 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. --- sbin/ddb/ddb_capture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/ddb/ddb_capture.c b/sbin/ddb/ddb_capture.c index ffc9b91552d..370fc0058ba 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': -- 2.45.2