summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2007-09-21 01:55:11 +0000
committerkevlo <kevlo@FreeBSD.org>2007-09-21 01:55:11 +0000
commitee96f0aa6f321a84319c55663b2a1def01470a55 (patch)
tree813441e72922e9af186945ffa372cb1f915e6a11 /usr.bin/m4
parenta9d79aef66de5019536c4de3155086af3fe25cdf (diff)
downloadFreeBSD-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.c2
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;
}
OpenPOWER on IntegriCloud