diff options
Diffstat (limited to 'contrib/tcsh/sh.time.c')
-rw-r--r-- | contrib/tcsh/sh.time.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/contrib/tcsh/sh.time.c b/contrib/tcsh/sh.time.c index cb71724..9f0601f 100644 --- a/contrib/tcsh/sh.time.c +++ b/contrib/tcsh/sh.time.c @@ -1,4 +1,4 @@ -/* $Header: /src/pub/tcsh/sh.time.c,v 3.23 2001/03/18 19:06:31 christos Exp $ */ +/* $Header: /src/pub/tcsh/sh.time.c,v 3.25 2002/06/25 19:02:11 christos Exp $ */ /* * sh.time.c: Shell time keeping and printing. */ @@ -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: sh.time.c,v 3.23 2001/03/18 19:06:31 christos Exp $") +RCSID("$Id: sh.time.c,v 3.25 2002/06/25 19:02:11 christos Exp $") #ifdef SUNOS4 # include <machine/param.h> @@ -398,7 +394,7 @@ prusage(bs, es, e, b) xprintf("t %lu\n", t); #endif /* TDEBUG */ - if (vp && vp->vec[0] && vp->vec[1]) + if (vp && vp->vec && vp->vec[0] && vp->vec[1]) cp = short2str(vp->vec[1]); for (; *cp; cp++) if (*cp != '%') |