[network-manager-applet/nma-1-0: 2/8] c-e: fix clearing error in connection_editor_validate()



commit 86fb40842ddd9d5d6e9aecd5a653992b881ea532
Author: Thomas Haller <thaller redhat com>
Date:   Thu Sep 10 16:37:50 2015 +0200

    c-e: fix clearing error in connection_editor_validate()
    
    (cherry picked from commit 9491e737e39f1226120b6fdfbda297af800310c9)

 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 fe0f08b..249ecd0 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -229,10 +229,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]