diff options
author | kevlo <kevlo@FreeBSD.org> | 2007-09-21 01:55:11 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2007-09-21 01:55:11 +0000 |
commit | ee96f0aa6f321a84319c55663b2a1def01470a55 (patch) | |
tree | 813441e72922e9af186945ffa372cb1f915e6a11 /usr.bin/m4 | |
parent | a9d79aef66de5019536c4de3155086af3fe25cdf (diff) | |
download | FreeBSD-src-ee96f0aa6f321a84319c55663b2a1def01470a55.zip FreeBSD-src-ee96f0aa6f321a84319c55663b2a1def01470a55.tar.gz |
Use NULL instead of 0 for the return value of fopen().
Approved by: re (kensmith)
Diffstat (limited to 'usr.bin/m4')
-rw-r--r-- | usr.bin/m4/gnum4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/m4/gnum4.c b/usr.bin/m4/gnum4.c index 8940bb8..f4cfa77 100644 --- a/usr.bin/m4/gnum4.c +++ b/usr.bin/m4/gnum4.c @@ -133,7 +133,7 @@ dopath(struct input_file *i, const char *filename) for (pe = first; pe; pe = pe->next) { snprintf(path, sizeof(path), "%s/%s", pe->name, filename); - if ((f = fopen(path, "r")) != 0) { + if ((f = fopen(path, "r")) != NULL) { set_input(i, f, path); return i; } |