just making bdf5e87c927348a6cf446e2840b2b14ad46a7dbc easier to read
authorNikolas Garofil <garo@dunaldi.garofil.be>
Fri, 24 Jul 2009 14:17:03 +0000 (16:17 +0200)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Fri, 24 Jul 2009 14:17:03 +0000 (16:17 +0200)
src/rss.c

index 8ae7edb..7325482 100644 (file)
--- a/src/rss.c
+++ b/src/rss.c
@@ -65,7 +65,8 @@ 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) {
-                       if (str = data->title) {
+                       str = data->title;
+                       if (str != NULL) {
                                // remove trailing new line if one exists
                                if (str[strlen(str) - 1] == '\n') {
                                        str[strlen(str) - 1] = 0;