[network-manager-openvpn/th/import-cleanup-bgo760987: 3/7] properties: drop useless if() before g_strfreev()



commit 08f1ecf0bea117c9c99e0c6cd058f34e2b08140a
Author: Thomas Haller <thaller redhat com>
Date:   Fri Jan 22 15:10:49 2016 +0100

    properties: drop useless if() before g_strfreev()

 properties/import-export.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/properties/import-export.c b/properties/import-export.c
index 5e885ef..91a26af 100644
--- a/properties/import-export.c
+++ b/properties/import-export.c
@@ -1181,8 +1181,7 @@ out:
                g_object_unref (s_vpn);
 
        g_free (new_contents);
-       if (lines)
-               g_strfreev (lines);
+       g_strfreev (lines);
 
        return connection;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]