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:
Jonas Bonn 2018-10-26 12:13:14 +02:00 committed by Denis Kenzior
parent ab4460690d
commit a1141ae393
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}