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 {