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:
jhb 2009-11-17 15:28:14 +00:00
parent 2d322e385f
commit 23cf1900e0

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