summaryrefslogtreecommitdiff
path: root/sfeed_html.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-01-02 21:14:07 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-01-02 21:14:07 +0100
commit86993965de423bdd9f4cfb146929a1cdd9fbc0b2 (patch)
tree22657797ec44c475d3ae29e24a77764dfef390bb /sfeed_html.c
parent43f02f646c97ddbc4dc41fe9e119506cf95e0b28 (diff)
trim string
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");