From: Etienne Dechamps Date: Sat, 12 Jul 2014 11:52:25 +0000 (+0100) Subject: Remove an unnecessary pointer dereference in execute_script(). X-Git-Tag: release-1.1pre11~63^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f693cb7295298ecd6993a4feac1faf9129aa204d;p=oweals%2Ftinc.git 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++; ^ --- diff --git a/src/script.c b/src/script.c index 9a43d53..6389cb4 100644 --- a/src/script.c +++ b/src/script.c @@ -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); }