mirror of git://git.sysmocom.de/ofono
rilmodem: Initialize ofono_error correctly
This commit is contained in:
parent
548a11f586
commit
5ef046d63d
|
@ -364,7 +364,6 @@ static void ril_file_io_cb(struct ril_msg *message, gpointer user_data)
|
|||
struct cb_data *cbd = user_data;
|
||||
ofono_sim_read_cb_t cb = cbd->cb;
|
||||
struct sim_data *sd = cbd->user;
|
||||
struct ofono_error error;
|
||||
int sw1, sw2;
|
||||
char *hex_response;
|
||||
unsigned char *response = NULL;
|
||||
|
@ -391,7 +390,7 @@ static void ril_file_io_cb(struct ril_msg *message, gpointer user_data)
|
|||
goto error;
|
||||
}
|
||||
|
||||
cb(&error, response, len, cbd->data);
|
||||
CALLBACK_WITH_SUCCESS(cb, response, len, cbd->data);
|
||||
g_free(response);
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue