[network-manager-applet/th/validation-error-bgo754832: 1/13] c-e: fix clearing error in connection_editor_validate()
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/th/validation-error-bgo754832: 1/13] c-e: fix clearing error in connection_editor_validate()
- Date: Fri, 11 Sep 2015 12:15:38 +0000 (UTC)
commit 9491e737e39f1226120b6fdfbda297af800310c9
Author: Thomas Haller <thaller redhat com>
Date: Thu Sep 10 16:37:50 2015 +0200
c-e: fix clearing error in connection_editor_validate()
src/connection-editor/nm-connection-editor.c | 2 +-
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 fa918f9..b4b0711 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]