projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7f89a7
)
Remove an unnecessary pointer dereference in execute_script().
author
Etienne Dechamps
<etienne@edechamps.fr>
Sat, 12 Jul 2014 11:52:25 +0000
(12:52 +0100)
committer
Etienne 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
patch
|
blob
|
history
diff --git
a/src/script.c
b/src/script.c
index
9a43d53
..
6389cb4
100644
(file)
--- 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);
}