diff options
Diffstat (limited to 'swenu-exes.c')
| -rw-r--r-- | swenu-exes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swenu-exes.c b/swenu-exes.c index 07acda9..9a36ba3 100644 --- a/swenu-exes.c +++ b/swenu-exes.c @@ -35,7 +35,7 @@ int main(int argc, char** argv) { char path[PATH_MAX]; char* dir = NULL; - for (dir = strtok(pathenv, ":"); (dir = strtok(NULL, ":"));) { + for (dir = strtok(pathenv, ":"); dir ;dir = strtok(NULL, ":")) { DIR* dirfd = opendir(dir); if (!dirfd) { fprintf(stderr, "%s: %s\n", strerror(errno), dir); |
