mirror of git://git.sysmocom.de/ofono
qmimodem: prevent use of unitialized variable
'index' may not be initialized in the error path so don't try to print a message with it.
This commit is contained in:
parent
ab4460690d
commit
a1141ae393
|
@ -164,7 +164,7 @@ static void get_default_profile_cb(struct qmi_result *result, void *user_data)
|
|||
qmi_param_free(param);
|
||||
|
||||
error:
|
||||
ofono_error("Failed to reset profile %hhd", index);
|
||||
ofono_error("Failed to reset default profile");
|
||||
ofono_lte_remove(lte);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue