diff options
-rw-r--r-- | bin/sh/eval.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/sh/eval.c b/bin/sh/eval.c index d5637d1..34417df 100644 --- a/bin/sh/eval.c +++ b/bin/sh/eval.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: eval.c,v 1.2 1994/09/24 02:57:29 davidg Exp $ + * $Id: eval.c,v 1.3 1995/05/30 00:07:11 rgrimes Exp $ */ #ifndef lint @@ -851,7 +851,8 @@ prehash(n) { struct cmdentry entry; - if (n->type == NCMD && goodname(n->ncmd.args->narg.text)) + if (n->type == NCMD && n->ncmd.args && + goodname(n->ncmd.args->narg.text)) find_command(n->ncmd.args->narg.text, &entry, 0); } |