Blame SOURCES/0005-inspector-Check-a-return-value.patch

25dd04
From 0df57451ea447f4f78643da0352d38c4235124bc Mon Sep 17 00:00:00 2001
25dd04
From: Matthias Clasen <mclasen@redhat.com>
25dd04
Date: Fri, 17 Jul 2015 16:16:31 -0400
25dd04
Subject: [PATCH 5/7] inspector: Check a return value
25dd04
25dd04
We don't care about the error here, but we were relying on
25dd04
g_resources_get_info to zero the size even in case of error.
25dd04
No need to do that, we can just check the return value. Plus,
25dd04
it makes coverity happy.
25dd04
---
25dd04
 gtk/inspector/resource-list.c | 3 ++-
25dd04
 1 file changed, 2 insertions(+), 1 deletion(-)
25dd04
25dd04
diff --git a/gtk/inspector/resource-list.c b/gtk/inspector/resource-list.c
25dd04
index a9b6a0d..d821775 100644
25dd04
--- a/gtk/inspector/resource-list.c
25dd04
+++ b/gtk/inspector/resource-list.c
25dd04
@@ -95,7 +95,8 @@ load_resources_recurse (GtkInspectorResourceList *sl,
25dd04
       else
25dd04
         {
25dd04
           count = 1;
25dd04
-          g_resources_get_info (p, 0, &size, NULL, NULL);
25dd04
+          if (!g_resources_get_info (p, 0, &size, NULL, NULL))
25dd04
+            size = 0;
25dd04
         }
25dd04
 
25dd04
       stored_size = size;
25dd04
-- 
25dd04
2.4.5
25dd04