Remove an unnecessary pointer dereference in execute_script().
authorEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 11:52:25 +0000 (12:52 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 12:34:08 +0000 (13:34 +0100)
This fixes the following compiler warning when building for Windows:

script.c: In function â€˜execute_script’:
script.c:52:5: error: value computed is not used [-Werror=unused-value]
     *q++;
          ^

src/script.c

index 9a43d53..6389cb4 100644 (file)
@@ -49,7 +49,7 @@ bool execute_script(const char *name, char **envp) {
                        if(q) {
                                memcpy(ext, p, q - p);
                                ext[q - p] = 0;
-                               *q++;
+                               q++;
                        } else {
                                strcpy(ext, p);
                        }