From 45973d9d158dfe53cf0299b6e8f21545186c6c95 Mon Sep 17 00:00:00 2001 From: araujo Date: Mon, 18 Apr 2016 07:09:34 +0000 Subject: Use NULL instead of 0 for pointers. fopen(3) will return NULL in case it cannot open the STREAM. MFC after: 2 weeks. --- usr.bin/m4/gnum4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/m4/gnum4.c b/usr.bin/m4/gnum4.c index dcccf3b..61f96d4 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; } -- cgit v1.1