summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-05-02 20:00:07 +0000
committerobrien <obrien@FreeBSD.org>2000-05-02 20:00:07 +0000
commita60d6d49510cbcce50310f6f473f27b9b2838533 (patch)
tree8b7b2cb398954ea3bfbd4b846b4a7e981fbfe35f
parent022b0d5f39ddf3897ef891d0e8d0c4928af03af1 (diff)
parent1ac43653c055c440832211fd4562816d1f67fceb (diff)
downloadFreeBSD-src-a60d6d49510cbcce50310f6f473f27b9b2838533.zip
FreeBSD-src-a60d6d49510cbcce50310f6f473f27b9b2838533.tar.gz
This commit was generated by cvs2svn to compensate for changes in r59901,
which included commits to RCS files with non-trunk default branches.
-rw-r--r--contrib/tcsh/tc.prompt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tcsh/tc.prompt.c b/contrib/tcsh/tc.prompt.c
index 2999923..c1a2da6 100644
--- a/contrib/tcsh/tc.prompt.c
+++ b/contrib/tcsh/tc.prompt.c
@@ -222,7 +222,7 @@ tprintf(what, buf, fmt, siz, str, tim, info)
fmthist('R', info, (char *) (cz = cbuff), sizeof(cbuff));
else
cz = (unsigned char *) str;
- if (str != NULL)
+ if (cz != NULL)
for (; *cz; *p++ = attributes | *cz++)
if (p >= ep) break;
break;
@@ -477,7 +477,7 @@ tprintf(what, buf, fmt, siz, str, tim, info)
case 'w':
if (p >= ep - 5) break;
for (cz = (unsigned char *) month_list[t->tm_mon]; *cz;
- *p++ = attributes | *cz++);
+ *p++ = attributes | *cz++)
if (p >= ep) break;
break;
case 'W':
OpenPOWER on IntegriCloud