[network-manager-applet/th/validation-error-bgo754832: 1/6] c-e: fix clearing error in connection_editor_validate()



commit 812705746bc3022416949ad06afa386cc43bf325
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]