From 907636d97b1893e9df4ef28489c92d32118c6fa2 Mon Sep 17 00:00:00 2001 From: Alan F Date: Mon, 24 Feb 2014 18:48:23 +0000 Subject: plug the RSS feeds into the preferences dialog and put ifdefs so it should compile without rss-glib --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 5ef7768..8dcbb65 100644 --- a/src/util.c +++ b/src/util.c @@ -340,7 +340,7 @@ gchar *make_error_message(JsonObject * response, int status) { if (status == FAIL_JSON_DECODE) { return g_strdup(_("JSON decoding error.")); - } else if (status == FAIL_RESPONSE_UNSUCCESSFUL) { + } else if (response && status == FAIL_RESPONSE_UNSUCCESSFUL) { const gchar *resultStr = json_object_get_string_member(response, "result"); if (resultStr == NULL) -- cgit v1.2.3