diff options
author | stefanf <stefanf@FreeBSD.org> | 2006-06-15 07:57:05 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2006-06-15 07:57:05 +0000 |
commit | 9755dcd8dbe6b583601673fe7095f34cd82a7e53 (patch) | |
tree | 0170c7ee26840f052831afca6ca30eb766f9eeb6 /bin | |
parent | 40616c7bb389aaa1e23907cad897503212b8e51e (diff) | |
download | FreeBSD-src-9755dcd8dbe6b583601673fe7095f34cd82a7e53.zip FreeBSD-src-9755dcd8dbe6b583601673fe7095f34cd82a7e53.tar.gz |
Merge NetBSD's revision 1.86: Don't crash on "<cmd> | { }".
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/eval.c b/bin/sh/eval.c index dc0236d..a26f36d 100644 --- a/bin/sh/eval.c +++ b/bin/sh/eval.c @@ -914,7 +914,7 @@ prehash(union node *n) { struct cmdentry entry; - if (n->type == NCMD && n->ncmd.args) + if (n && n->type == NCMD && n->ncmd.args) if (goodname(n->ncmd.args->narg.text)) find_command(n->ncmd.args->narg.text, &entry, 0, pathval()); |