}
}
-const char *ttrss_get_headline_content(struct headline *h)
+char *ttrss_get_headline_content(struct headline *h)
{
const char *cache_dir;
char *path, *content;
content = file_get_content(path);
- if (content)
- file_set_content(path, content);
- else
+ if (!content) {
content = ws_get_article_content(h->id);
-
+ file_set_content(path, content);
+ }
+
g_free(path);
return content;