diff options
author | charnier <charnier@FreeBSD.org> | 1997-07-24 06:56:33 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-07-24 06:56:33 +0000 |
commit | 2df2878db2fff5ba7f8f8fe84159b8f955530617 (patch) | |
tree | 5ac950789af8a285aa2da6004e09394a8c86e761 /usr.bin/mail/aux.c | |
parent | a27c19ecbf0d42e6bb692c5111ebc7888cb7b1aa (diff) | |
download | FreeBSD-src-2df2878db2fff5ba7f8f8fe84159b8f955530617.zip FreeBSD-src-2df2878db2fff5ba7f8f8fe84159b8f955530617.tar.gz |
Use err(3).
Diffstat (limited to 'usr.bin/mail/aux.c')
-rw-r--r-- | usr.bin/mail/aux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mail/aux.c b/usr.bin/mail/aux.c index f6f7211..d8d385a 100644 --- a/usr.bin/mail/aux.c +++ b/usr.bin/mail/aux.c @@ -179,7 +179,7 @@ hfield(field, mp) while (lc > 0) { if ((lc = gethfield(ibuf, linebuf, lc, &colon)) < 0) return oldhfield; - if (hfield = ishfield(linebuf, colon, field)) + if ((hfield = ishfield(linebuf, colon, field)) != NULL) oldhfield = save2str(hfield, oldhfield); } return oldhfield; @@ -572,7 +572,7 @@ name1(mp, reptype) if (reptype == 0 && (cp = hfield("sender", mp)) != NOSTR) return cp; ibuf = setinput(mp); - namebuf[0] = 0; + namebuf[0] = '\0'; if (readline(ibuf, linebuf, LINESIZE) < 0) return(savestr(namebuf)); newname: |