aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-03-25 13:23:14 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-03-25 13:23:14 +0200
commita3e92aab353cabae2743b78de1f12fe94e66a339 (patch)
tree7a32ea31097ed65c9cb8a385bd082473f5a9f037 /io.c
parent09a48263ff3db65b3e24f1b5fc50800c20cce162 (diff)
downloadegawk-a3e92aab353cabae2743b78de1f12fe94e66a339.tar.gz
egawk-a3e92aab353cabae2743b78de1f12fe94e66a339.tar.bz2
egawk-a3e92aab353cabae2743b78de1f12fe94e66a339.zip
Some cleanups after code review of main.c.
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