diff options
-rw-r--r-- | rssd.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -11,8 +11,10 @@ int main(void) fprintf(stderr, "Processing URL: %s\n", url); err = mrss_parse_url(url, &feed); fprintf(stderr, "Error value: %u\n", err); - fprintf(stderr, "Feed title: %s\n", feed->title); - fprintf(stderr, "Feed description: %s\n", feed->description); + if (err == 0) { + fprintf(stderr, "Feed title: %s\n", feed->title); + fprintf(stderr, "Feed description: %s\n", feed->description); + } } exit(EXIT_SUCCESS); |