From f693cb7295298ecd6993a4feac1faf9129aa204d Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sat, 12 Jul 2014 12:52:25 +0100 Subject: [PATCH] Remove an unnecessary pointer dereference in execute_script(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.25.1