projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c703dec
)
NULL != 0
author
John Carr
<jfc@mit.edu>
Wed, 3 Apr 1991 18:14:39 +0000
(18:14 +0000)
committer
John Carr
<jfc@mit.edu>
Wed, 3 Apr 1991 18:14:39 +0000
(18:14 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1989
dc483132
-0cff-0310-8789-
dd5450dbe970
src/appl/movemail/movemail.c
patch
|
blob
|
history
diff --git
a/src/appl/movemail/movemail.c
b/src/appl/movemail/movemail.c
index ad937465567275f73c1d31fcacaa060db837d02c..89ace3fc8c7ea5504dbec1ed95e15084450eb295 100644
(file)
--- a/
src/appl/movemail/movemail.c
+++ b/
src/appl/movemail/movemail.c
@@
-729,9
+729,9
@@
FILE *f;
return (DONE);
}
- *p =
NULL
;
- if (*--p == '\n') *p =
NULL
;
- if (*--p == '\r') *p =
NULL
;
+ *p =
'\0'
;
+ if (*--p == '\n') *p =
'\0'
;
+ if (*--p == '\r') *p =
'\0'
;
return(OK);
}
@@
-742,7
+742,7
@@
FILE *f;
{
if (getline(buf, n, f) != OK) return (NOTOK);
if (*buf == '.') {
- if (
*(buf+1) == NULL
) {
+ if (
buf[1] == '\0'
) {
return (DONE);
} else {
strcpy(buf, buf+1);