summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_html.c b/sfeed_html.c
index 2e60ad3..1a8b5cc 100644
--- a/sfeed_html.c
+++ b/sfeed_html.c
@@ -22,7 +22,7 @@ printfeed(FILE *fp, struct feed *f)
unsigned int islink, isnew;
ssize_t linelen;
- if (f->name[0] != '\0') {
+ if (f->name[0]) {
fputs("<h2 id=\"", stdout);
xmlencode(f->name, stdout);
fputs("\"><a href=\"#", stdout);
@@ -45,7 +45,7 @@ printfeed(FILE *fp, struct feed *f)
err(1, "localtime");
isnew = (parsedtime >= comparetime) ? 1 : 0;
- islink = (fields[FieldLink][0] != '\0') ? 1 : 0;
+ islink = fields[FieldLink][0] ? 1 : 0;
totalnew += isnew;
f->totalnew += isnew;