summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-09-10 16:37:50 +0200
committerThomas Haller <thaller@redhat.com>2015-09-11 14:13:30 +0200
commit9491e737e39f1226120b6fdfbda297af800310c9 (patch)
tree7bd57b43fe02ef2add5cfbd1341a5bb8db93b999
parenteaf99061fba3cde9b94d3b802ff0e7d17bdfd41b (diff)
downloadnetwork-manager-applet-9491e737e39f1226120b6fdfbda297af800310c9.tar.gz
c-e: fix clearing error in connection_editor_validate()
-rw-r--r--src/connection-editor/nm-connection-editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection-editor/nm-connection-editor.c b/src/connection-editor/nm-connection-editor.c
index fa918f93..b4b07119 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -206,10 +206,10 @@ connection_editor_validate (NMConnectionEditor *editor)
printed = TRUE;
if (error) {
g_warning ("Invalid setting %s: %s", CE_PAGE (iter->data)->title, error->message);
- g_error_free (error);
} else
g_warning ("Invalid setting %s", CE_PAGE (iter->data)->title);
}
+ g_clear_error (&error);
}
}