summaryrefslogtreecommitdiff
path: root/sfeed_frames.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-10-06 18:45:54 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-10-09 11:27:06 +0200
commit3a5295f595acee81170565ba0405a64d7110a229 (patch)
treea6b992a81a220e8385e26654adc0f40596b7ec97 /sfeed_frames.c
parent08add9b95e58bc4e7ece8137efe8dc0905a94467 (diff)
fix counting due to uninitialized variable when the time could not be parsed
Since commit 276d5789fd91d1cbe84b7baee736dea28b1e04c0 if the time is empty or could not be parsed then it is shown/aligned as a blank space instead of being skipped. An oversight in this change was that items should be counted and set in `isnew`. This commit fixes the uninitialized variable and possible miscounting.
Diffstat (limited to 'sfeed_frames.c')
-rw-r--r--sfeed_frames.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfeed_frames.c b/sfeed_frames.c
index bb55c31..ed06397 100644
--- a/sfeed_frames.c
+++ b/sfeed_frames.c
@@ -50,6 +50,7 @@ printfeed(FILE *fpitems, FILE *fpin, struct feed *f)
tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
tm->tm_hour, tm->tm_min);
} else {
+ isnew = 0;
fputs(" ", fpitems);
}
f->total++;