diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2020-10-01 04:25:54 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2020-10-01 04:25:54 +0000 |
commit | b4ed613595432ece6802d09bfabad18e09aa26f3 (patch) | |
tree | bd2db6b09b756624c1b2babdd12ea05a9dffcdaf /ex/ex_shell.c | |
parent | 7cef6c685d23e4dcdf3f64b0b2ea92151e652db6 (diff) |
Notes
Diffstat (limited to 'ex/ex_shell.c')
-rw-r--r-- | ex/ex_shell.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ex/ex_shell.c b/ex/ex_shell.c index 7b483fd4e14c..7d73253dfbc5 100644 --- a/ex/ex_shell.c +++ b/ex/ex_shell.c @@ -48,8 +48,7 @@ ex_shell(SCR *sp, EXCMD *cmdp) * XXX * Assumes all shells use -i. */ - (void)asprintf(&buf, "%s -i", O_STR(sp, O_SHELL)); - if (buf == NULL) { + if (asprintf(&buf, "%s -i", O_STR(sp, O_SHELL)) == -1) { msgq(sp, M_SYSERR, NULL); return (1); } |