Skip to content

Commit

Permalink
Fix useless garbage initialization
Browse files Browse the repository at this point in the history
The variable 'p' was initialized with a garbage value (a "const char **"
casted to "char *"). Fortunately, it was never read.

Refs <#3765>
  • Loading branch information
rom1v committed Mar 3, 2023
1 parent 389dd77 commit e7b9abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ execute_server(struct sc_server *server,

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

0 comments on commit e7b9abd

Please sign in to comment.