aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/m4
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-04-18 07:09:34 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-04-18 07:09:34 +0000
commit1b56693f8b10f0a106862969c65ca9bb77d95f60 (patch)
tree72d0195fe2cd71f981220db492f56346d6528b44 /usr.bin/m4
parent26ac9660a4b4ea997309aa2d6d52bab4a88c7343 (diff)
downloadsrc-1b56693f8b10f0a106862969c65ca9bb77d95f60.tar.gz
src-1b56693f8b10f0a106862969c65ca9bb77d95f60.zip
Use NULL instead of 0 for pointers.
fopen(3) will return NULL in case it cannot open the STREAM. MFC after: 2 weeks.
Notes
Notes: svn path=/head/; revision=298190
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 dcccf3ba135f..61f96d471dff 100644
--- a/usr.bin/m4/gnum4.c
+++ b/usr.bin/m4/gnum4.c
@@ -129,7 +129,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;
}