1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

workaround to fix feed_title being processed when not yet parsed

This commit is contained in:
Cesare Tirabassi 2009-07-24 14:48:54 +02:00
parent 0be6e37e07
commit bdf5e87c92

View File

@ -65,12 +65,13 @@ void rss_process_info(char *p, int p_max_size, char *uri, char *action, int
snprintf(p, p_max_size, "prss: Error reading RSS data\n");
} else {
if (strcmp(action, "feed_title") == EQUAL) {
str = data->title;
// remove trailing new line if one exists
if (str[strlen(str) - 1] == '\n') {
str[strlen(str) - 1] = 0;
if (str = data->title) {
// remove trailing new line if one exists
if (str[strlen(str) - 1] == '\n') {
str[strlen(str) - 1] = 0;
}
snprintf(p, p_max_size, "%s", str);
}
snprintf(p, p_max_size, "%s", str);
} else if (strcmp(action, "item_title") == EQUAL) {
if (act_par < data->item_count) {
str = data->items[act_par].title;