From b5d41ad4f6017cf76fb7fad9e1af919eac34330f Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 3 Mar 2023 11:03:48 +0100 Subject: [PATCH] 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 --- app/src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/server.c b/app/src/server.c index 83c177dc..c9164972 100644 --- a/app/src/server.c +++ b/app/src/server.c @@ -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; \ } \