diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-09-22 21:50:41 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-09-22 21:50:41 +0000 |
commit | 6e60e48fdd8022a4da2ecad0a4ec8d65e4110a78 (patch) | |
tree | 1e58923afa2769e6618902b49259071569574487 /bin/ksh/expr.c | |
parent | dac08daa66a37497220033a0013fe7c86ebe3cee (diff) |
Make errorf() and bi_errorf() handle a NULL argument.
From Michael McConville; OK nicm@
Diffstat (limited to 'bin/ksh/expr.c')
-rw-r--r-- | bin/ksh/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/expr.c b/bin/ksh/expr.c index 6d53c7882c9..effc20d42ce 100644 --- a/bin/ksh/expr.c +++ b/bin/ksh/expr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: expr.c,v 1.27 2015/09/18 07:28:24 nicm Exp $ */ +/* $OpenBSD: expr.c,v 1.28 2015/09/22 21:50:40 millert Exp $ */ /* * Korn expression evaluation @@ -187,7 +187,7 @@ v_evaluate(struct tbl *vp, const char *expr, volatile int error_ok, if (i == LAEXPR) { if (error_ok == KSH_RETURN_ERROR) return 0; - errorf(null); + errorf(NULL); } unwind(i); /* NOTREACHED */ |