aboutsummaryrefslogtreecommitdiff
path: root/swenu-exes.c
diff options
context:
space:
mode:
authorRiley Beckett <rbeckettvt@gmail.com>2025-11-07 20:28:46 -0500
committerRiley Beckett <rbeckettvt@gmail.com>2025-11-07 20:28:46 -0500
commitd4769b0f2e4012af5949651aca4f60ade5b97b54 (patch)
tree8a26321b84973eb69d91b9a52249f5400a811670 /swenu-exes.c
parentf2bec33ebc703d51a74ef17ab0624e615ba16fce (diff)
fix path resolution
Diffstat (limited to 'swenu-exes.c')
-rw-r--r--swenu-exes.c2
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);