Skip to content

Commit b5d41ad

Browse files
committed
Fix useless garbage initialization
The variable `p` was initialized with a garbage value (a `const char **` casted to `char *`). Fortunately, it was never read. Refs <#3765>
1 parent 389dd77 commit b5d41ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/server.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ execute_server(struct sc_server *server,
206206

207207
unsigned dyn_idx = count; // from there, the strings are allocated
208208
#define ADD_PARAM(fmt, ...) { \
209-
char *p = (char *) &cmd[count]; \
209+
char *p; \
210210
if (asprintf(&p, fmt, ## __VA_ARGS__) == -1) { \
211211
goto end; \
212212
} \

0 commit comments

Comments
 (0)