mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 14:00:15 +01:00
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".
This commit is contained in:
parent
0da3b96ab5
commit
f93128194e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue