Blame SOURCES/0096-lib-fix-a-bug-in-ureport-response-parser.patch

28bab8
From adfc3e694448174cd3589f0c0dd93c86f9692f90 Mon Sep 17 00:00:00 2001
28bab8
From: Jakub Filak <jfilak@redhat.com>
28bab8
Date: Wed, 8 Oct 2014 12:37:24 +0200
28bab8
Subject: [LIBREPORT PATCH 96/97] lib: fix a bug in ureport response parser
28bab8
28bab8
Revealed by coverity
28bab8
28bab8
Related to rhbz1139987
28bab8
28bab8
Signed-off-by: Jakub Filak <jfilak@redhat.com>
28bab8
---
28bab8
 src/lib/ureport.c | 1 +
28bab8
 1 file changed, 1 insertion(+)
28bab8
28bab8
diff --git a/src/lib/ureport.c b/src/lib/ureport.c
28bab8
index 7e71c51..0e0472e 100644
28bab8
--- a/src/lib/ureport.c
28bab8
+++ b/src/lib/ureport.c
28bab8
@@ -340,6 +340,7 @@ parse_solution_from_json_list(struct json_object *list,
28bab8
             continue;
28bab8
 
28bab8
         cause = json_object_get_string(struct_elem);
28bab8
+        if (!cause)
28bab8
             continue;
28bab8
 
28bab8
         if (!json_object_object_get_ex(list_elem, "note", &struct_elem))
28bab8
-- 
28bab8
1.8.3.1
28bab8