Blame SOURCES/0001-Fix-issues-found-by-Coverity.patch

2c6b19
From f413ee60dcd538603f0db608899799113fba053f Mon Sep 17 00:00:00 2001
2c6b19
From: Sumit Bose <sbose@redhat.com>
2c6b19
Date: Tue, 14 Aug 2018 14:09:48 +0200
2c6b19
Subject: [PATCH] Fix issues found by Coverity
2c6b19
2c6b19
---
2c6b19
 service/realm-kerberos.c | 5 ++++-
2c6b19
 service/realm-packages.c | 2 +-
2c6b19
 2 files changed, 5 insertions(+), 2 deletions(-)
2c6b19
2c6b19
diff --git a/service/realm-kerberos.c b/service/realm-kerberos.c
2c6b19
index d6d109f..252e256 100644
2c6b19
--- a/service/realm-kerberos.c
2c6b19
+++ b/service/realm-kerberos.c
2c6b19
@@ -980,7 +980,10 @@ realm_kerberos_set_details (RealmKerberos *self,
2c6b19
 		if (name == NULL)
2c6b19
 			break;
2c6b19
 		value = va_arg (va, const gchar *);
2c6b19
-		g_return_if_fail (value != NULL);
2c6b19
+		if (value == NULL) {
2c6b19
+			va_end (va);
2c6b19
+			g_return_if_reached ();
2c6b19
+		}
2c6b19
 
2c6b19
 		values[0] = g_variant_new_string (name);
2c6b19
 		values[1] = g_variant_new_string (value);
2c6b19
diff --git a/service/realm-packages.c b/service/realm-packages.c
2c6b19
index 9a6984c..5976439 100644
2c6b19
--- a/service/realm-packages.c
2c6b19
+++ b/service/realm-packages.c
2c6b19
@@ -567,7 +567,7 @@ lookup_required_files_and_packages (const gchar **package_sets,
2c6b19
 		g_ptr_array_add (packages, NULL);
2c6b19
 		*result_packages = (gchar **)g_ptr_array_free (packages, FALSE);
2c6b19
 	} else {
2c6b19
-		g_ptr_array_free (files, TRUE);
2c6b19
+		g_ptr_array_free (packages, TRUE);
2c6b19
 	}
2c6b19
 
2c6b19
 	if (result_files) {
2c6b19
-- 
2c6b19
2.17.1
2c6b19