4104372ff4
Use %%global instead of %%define
26 lines
798 B
Diff
26 lines
798 B
Diff
From ad6b52edd4c36b413d3bac6cb03f35369dae1d28 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
|
|
Date: Sun, 10 Dec 2017 20:20:21 +0100
|
|
Subject: [PATCH 2/2] Fix build against libjson-c.so.3
|
|
|
|
---
|
|
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 9e8bbd6..81f0791 100644
|
|
--- a/src/lib/ureport.c
|
|
+++ b/src/lib/ureport.c
|
|
@@ -609,7 +609,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.15.1
|
|
|