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:
gad 2004-06-24 03:15:18 +00:00
parent 4f75964945
commit 8d4da7c310

View File

@ -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;