aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index fc02beff..c9d421bd 100644
--- a/io.c
+++ b/io.c
@@ -2421,7 +2421,7 @@ do_find_source(const char *src, struct stat *stb, int *errcode)
init_awkpath(getenv("AWKPATH"));
emalloc(path, char *, max_pathlen + strlen(src) + 1, "do_find_source");
- for (i = 0; awkpath[i]; i++) {
+ for (i = 0; awkpath[i] != NULL; i++) {
if (STREQ(awkpath[i], "./") || STREQ(awkpath[i], ".")) {
*path = '\0';
} else