Fix a bug IÂ introduced by some last-minute changes in -r 1.102. I ended
up checking the wrong variable for NULL. Submitted by: bde
This commit is contained in:
parent
4f75964945
commit
8d4da7c310
@ -1013,7 +1013,7 @@ saveuser(KINFO *ki)
|
||||
ki->ki_p->ki_comm, MAXCOMLEN));
|
||||
else
|
||||
asprintf(&ki->ki_args, "(%s)", ki->ki_p->ki_comm);
|
||||
if (ki->ki_env == NULL)
|
||||
if (ki->ki_args == NULL)
|
||||
errx(1, "malloc failed");
|
||||
} else {
|
||||
ki->ki_args = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user