From a4fbdcc6b7dca4e04b50e0c62beb03e29ab32c62 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sun, 1 Oct 2023 18:28:10 +0200 Subject: [PATCH] commands-nas: fix gcc warning The compiler still thinks c could be initialized. Even this can't happen, assign it to NULL to silence the warning. Signed-off-by: Alexander Couzens --- commands-nas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands-nas.c b/commands-nas.c index 476cd61..9c0a626 100644 --- a/commands-nas.c +++ b/commands-nas.c @@ -710,7 +710,7 @@ static void cmd_nas_get_cell_location_info_cb(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg) { struct qmi_nas_get_cell_location_info_response res; - void *c, *t, *cell, *freq; + void *c = NULL, *t, *cell, *freq; int i, j; qmi_parse_nas_get_cell_location_info_response(msg, &res); -- 2.30.2