Blob Blame Raw
From e5a8fb6dfe5276fbd55235298bb3fd008b62d0ae Mon Sep 17 00:00:00 2001
From: Kyle Russell <bkylerussell@gmail.com>
Date: Wed, 7 Feb 2018 16:01:11 -0500
Subject: [PATCH 19/22] ureport: remove json-c is_error() usage

This macro has been deprecated and removed from json-c/bits.h.
---
 src/lib/ureport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ureport.c b/src/lib/ureport.c
index 6f1c05a3..c32c948a 100644
--- a/src/lib/ureport.c
+++ b/src/lib/ureport.c
@@ -613,7 +613,7 @@ ureport_server_response_from_reply(post_state_t *post_state,
 
     json_object *const json = json_tokener_parse(post_state->body);
 
-    if (is_error(json))
+    if (json == NULL)
     {
         error_msg(_("Unable to parse response from ureport server at '%s'"), config->ur_url);
         log_notice("%s", post_state->body);
-- 
2.14.3