{
struct json_object *jerror;
+ log_debug("ws_reply_get_error");
+
if (json_object_get_type(content) != json_type_object)
return NULL;
session_id = NULL;
result = 0;
}
- result = 1;
} else {
result = 0;
}
j = json_object_object_get(jheadline, "unread");
h->unread = json_object_get_boolean(j);
}
+
+ if (!feed->headlines) {
+ feed->headlines = malloc(sizeof(struct headline *));
+ *(feed->headlines) = NULL;
+ }
+
json_object_put(rp);
return 1;
} else {