diff options
author | Ben Chan <benchan@chromium.org> | 2019-07-26 17:04:30 -0700 |
---|---|---|
committer | Ben Chan <benchan@chromium.org> | 2019-07-26 17:04:30 -0700 |
commit | 500844af73a9a707794fc0694218d80f0514d2b8 (patch) | |
tree | 23be34e98f364be12b6ea277b7aaf5f8d54c6a6c /test/mmsmspdu.c | |
parent | d7696d8ec1ae33cc202fc112949f487ec7002111 (diff) |
shared-qmi: fix potentially uninitialized 'mcc' variable
mm-shared-qmi.c:358:9: error: variable 'mcc' is used uninitialized whenever '&&' condition is false [-Werror,-Wsometimes-uninitialized]
if (operator_id && !mm_3gpp_parse_operator_id (operator_id, &mcc, &mnc, &error)) {
^~~~~~~~~~~
mm-shared-qmi.c:367:9: note: uninitialized use occurs here
if (mcc) {
^~~
mm-shared-qmi.c:358:9: note: remove the '&&' if its condition is always true
if (operator_id && !mm_3gpp_parse_operator_id (operator_id, &mcc, &mnc, &error)) {
^~~~~~~~~~~~~~
mm-shared-qmi.c:339:51: note: initialize the variable 'mcc' to silence this warning
guint16 mcc;
^
= 0
Diffstat (limited to 'test/mmsmspdu.c')
0 files changed, 0 insertions, 0 deletions