Remove an unnecessary pointer dereference in execute_script().

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++;
          ^
This commit is contained in:
Etienne Dechamps 2014-07-12 12:52:25 +01:00
parent d7f89a7944
commit f693cb7295

View 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);
}