X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fmain.c;h=fd0a11f66f4ffc55de51ddabe7d9833566f49e9d;hp=b8104202c2d222b76f7918e13dcb6109263c3442;hb=db5c55a431ba0a76d6e269f80176711e73eb9e6a;hpb=b3abedbd3dbfa1d6362c028241142d2f7a850ddf diff --git a/src/main.c b/src/main.c index b810420..fd0a11f 100644 --- a/src/main.c +++ b/src/main.c @@ -130,12 +130,11 @@ int feed_cursor_changed_cbk(GtkTreeView *treeview, gpointer data) for (headlines = feed->headlines; *headlines; headlines++) { gtk_list_store_append(headline_store, &iter); - if ((*headlines)->unread) { + if ((*headlines)->unread) title = g_strdup_printf("%s", (*headlines)->title); - } else { + else title = strdup((*headlines)->title); - } gtk_list_store_set(headline_store, &iter,