diff options
-rw-r--r-- | src/qmicli/qmicli-wda.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qmicli/qmicli-wda.c b/src/qmicli/qmicli-wda.c index fe74ce4..041cbd2 100644 --- a/src/qmicli/qmicli-wda.c +++ b/src/qmicli/qmicli-wda.c @@ -329,6 +329,10 @@ qmicli_wda_run (QmiDevice *device, QmiMessageWdaSetDataFormatInput *input; input = set_data_format_input_create (set_data_format_str); + if (!input) { + shutdown (FALSE); + return; + } g_debug ("Asynchronously setting data format..."); qmi_client_wda_set_data_format (ctx->client, |