diff options
| author | Alexander Couzens | 2023-10-01 16:28:10 +0000 |
|---|---|---|
| committer | Alexander Couzens | 2024-03-09 20:15:21 +0000 |
| commit | a4fbdcc6b7dca4e04b50e0c62beb03e29ab32c62 (patch) | |
| tree | 1fa00d2b4063072799cc2ea8de6eba0b4d479eae | |
| parent | 8ff632a048bf72be64046dfdcb533f7745a1d237 (diff) | |
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 <lynxis@fe80.eu>
| -rw-r--r-- | commands-nas.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |