From 3a5295f595acee81170565ba0405a64d7110a229 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 6 Oct 2020 18:45:54 +0200 Subject: 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. --- sfeed_frames.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sfeed_frames.c') 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++; -- cgit v1.2.3