From 82d563e18a5fa7a37b737aa16ec40f3e7c3474c1 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 3 Mar 2011 23:58:26 +0100 Subject: [PATCH] gcc-4.5 compatibility fix (kinda) (kinda = I don't know why it compiled in 4.4 in the first place) --- src/rss.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rss.cc b/src/rss.cc index 18b551d5..cfaeec26 100644 --- a/src/rss.cc +++ b/src/rss.cc @@ -82,7 +82,7 @@ static void rss_process_info(char *p, int p_max_size, const std::string &uri, ch std::shared_ptr data = cb->get_result_copy(); - if (data == NULL || data->item_count < 1) { + if (!data || data->item_count < 1) { *p = 0; } else { /*