summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d7f89a7)
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++;
^
if(q) {
memcpy(ext, p, q - p);
ext[q - p] = 0;
if(q) {
memcpy(ext, p, q - p);
ext[q - p] = 0;
} else {
strcpy(ext, p);
}
} else {
strcpy(ext, p);
}