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.
This commit is contained in:
John Baldwin 2009-11-17 15:28:14 +00:00
parent 0072eeecbe
commit 9ad2d73695

View File

@ -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':