diff options
-rw-r--r-- | usr/src/cmd/csh/sh.exp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/csh/sh.exp.c b/usr/src/cmd/csh/sh.exp.c index 12eae9e96b..2447692682 100644 --- a/usr/src/cmd/csh/sh.exp.c +++ b/usr/src/cmd/csh/sh.exp.c @@ -1,5 +1,5 @@ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -524,7 +524,7 @@ exp6(tchar ***vp, bool ignore) * an error. Even this check isn't quite right, since * it doesn't take globbing into account. */ - if (isa(**vp, ANYOP) && stat_(**vp, &stb)) + if ((**vp == NULL) || isa(**vp, ANYOP) && stat_(**vp, &stb)) bferr("Missing file name"); dp = *(*vp)++; |