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:
parent
d7f89a7944
commit
f693cb7295
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue