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:
Garance A Drosehn 2004-06-24 03:15:18 +00:00
parent 1aab16a6b6
commit bd6233fd5d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131024

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;