diff options
| -rw-r--r-- | bin/ps/ps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index bae465f91fdf..6bbb00f24c61 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -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; |
