diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-03-25 13:23:14 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-03-25 13:23:14 +0200 |
commit | a3e92aab353cabae2743b78de1f12fe94e66a339 (patch) | |
tree | 7a32ea31097ed65c9cb8a385bd082473f5a9f037 /io.c | |
parent | 09a48263ff3db65b3e24f1b5fc50800c20cce162 (diff) | |
download | egawk-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |