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
This commit is contained in:
John Baldwin 2009-11-02 20:18:50 +00:00
parent 060ed74b53
commit 5ef5fd6e53
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198820

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