From a3e92aab353cabae2743b78de1f12fe94e66a339 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 25 Mar 2011 13:23:14 +0200 Subject: Some cleanups after code review of main.c. --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') 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 -- cgit v1.2.3