diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2014-12-04 17:50:03 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2014-12-05 09:38:40 +0100 |
commit | f93128194eb6e0d3ba7387ff6fc4430da6ae6cfe (patch) | |
tree | f7812ecae44691a4cca2fe96568c470d18fed0f1 /clients | |
parent | 0da3b96ab5ef1dad9b6c729c1019aeb27d487f0a (diff) | |
download | NetworkManager-f93128194eb6e0d3ba7387ff6fc4430da6ae6cfe.tar.gz |
tui: set GError so that it is not NULL later
Coverity:
Defect type: FORWARD_NULL
clients/tui/nmtui-edit.c:467: var_deref_op: Dereferencing null pointer "error".
Diffstat (limited to 'clients')
-rw-r--r-- | clients/tui/nmtui-edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/tui/nmtui-edit.c b/clients/tui/nmtui-edit.c index 2cc6b773aa..94d15fb3b2 100644 --- a/clients/tui/nmtui-edit.c +++ b/clients/tui/nmtui-edit.c @@ -463,7 +463,7 @@ connection_deleted_callback (GObject *connection, ConnectionDeleteData *data = user_data; GError *error = NULL; - if (!nm_remote_connection_delete_finish (data->connection, result, NULL)) { + if (!nm_remote_connection_delete_finish (data->connection, result, &error)) { nmt_newt_message_dialog (_("Unable to delete connection: %s"), error->message); } else |