diff options
Diffstat (limited to 'contrib/tcsh/tw.init.c')
-rw-r--r-- | contrib/tcsh/tw.init.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/contrib/tcsh/tw.init.c b/contrib/tcsh/tw.init.c index db4fe10..66439d2 100644 --- a/contrib/tcsh/tw.init.c +++ b/contrib/tcsh/tw.init.c @@ -1,4 +1,4 @@ -/* $Header: /src/pub/tcsh/tw.init.c,v 3.27 2000/11/11 23:03:40 christos Exp $ */ +/* $Header: /src/pub/tcsh/tw.init.c,v 3.29 2002/06/25 19:02:12 christos Exp $ */ /* * tw.init.c: Handle lists of things to complete */ @@ -14,11 +14,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -36,7 +32,7 @@ */ #include "sh.h" -RCSID("$Id: tw.init.c,v 3.27 2000/11/11 23:03:40 christos Exp $") +RCSID("$Id: tw.init.c,v 3.29 2002/06/25 19:02:12 christos Exp $") #include "tw.h" #include "ed.h" @@ -245,7 +241,7 @@ tw_cmd_cmd() int len; - if (v == NULL) /* if no path */ + if (v == NULL || v->vec == NULL) /* if no path */ return; for (pv = v->vec; *pv; pv++) { |