]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
whereis: remove unused value warning
authorFrancesco Cosoleto <cosoleto@gmail.com>
Tue, 8 Nov 2011 22:14:54 +0000 (23:14 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 9 Nov 2011 09:04:24 +0000 (10:04 +0100)
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
misc-utils/whereis.c

index 9f74963abd6f7fdcd39c17a1ed080aa9d1c1ede3..925cc93900d60b2bb93c5d624ca526b71f508e97 100644 (file)
@@ -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;