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 <https://github.com/Genymobile/scrcpy/issues/3765>
This commit is contained in:
parent
389dd77b50
commit
b5d41ad4f6
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ execute_server(struct sc_server *server,
|
||||||
|
|
||||||
unsigned dyn_idx = count; // from there, the strings are allocated
|
unsigned dyn_idx = count; // from there, the strings are allocated
|
||||||
#define ADD_PARAM(fmt, ...) { \
|
#define ADD_PARAM(fmt, ...) { \
|
||||||
char *p = (char *) &cmd[count]; \
|
char *p; \
|
||||||
if (asprintf(&p, fmt, ## __VA_ARGS__) == -1) { \
|
if (asprintf(&p, fmt, ## __VA_ARGS__) == -1) { \
|
||||||
goto end; \
|
goto end; \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in a new issue