summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc-utils/whereis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c
index 9f74963a..925cc939 100644
--- a/misc-utils/whereis.c
+++ b/misc-utils/whereis.c
@@ -268,7 +268,7 @@ static void fillpath(void)
return;
pathcp = xstrdup(path);
- for (tmp = pathcp; ;tmp = NULL, tok) {
+ for (tmp = pathcp; ; tmp = NULL) {
tok = strtok_r(tmp, ":", &key);
if (!tok)
break;