summaryrefslogtreecommitdiff
path: root/sfeed_html.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_html.c')
-rw-r--r--sfeed_html.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sfeed_html.c b/sfeed_html.c
index 9604a98..f49637b 100644
--- a/sfeed_html.c
+++ b/sfeed_html.c
@@ -48,7 +48,6 @@ main(void)
if(!totalfeeds || (fcur && strcmp(fcur->name, fields[FieldFeedName]))) {
if(!(f = calloc(1, sizeof(struct feed))))
err(1, "calloc");
- /*f->next = NULL;*/
if(totalfeeds) { /* end previous one. */
fputs("</table>\n", stdout);
fcur->next = f;
@@ -60,10 +59,10 @@ main(void)
/* set nosidebar class on div for styling */
fputs("\t\t<div id=\"items\" class=\"nosidebar\">\n", stdout);
showsidebar = 0;
- } else
+ } else {
fputs("\t\t<div id=\"items\">\n", stdout);
+ }
}
-
/* TODO: memcpy and make fcur->name static? */
if(!(fcur->name = strdup(fields[FieldFeedName])))
err(1, "strdup");