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
1aab16a6b6
commit
bd6233fd5d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131024
@ -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