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:
Romain Vimont 2023-03-03 11:03:48 +01:00
parent 389dd77b50
commit b5d41ad4f6

View file

@ -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; \
} \ } \