From c3d37b67f2926787b2499be64fb6f914b917d2ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= jaakko.keranen@iki.fi
Date: Sun, 3 Oct 2021 08:35:24 +0300
Subject: [PATCH 1/1] App: Don't divide by zero
src/app.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app.c b/src/app.c
index 012eb697..5fc01a5b 100644
--- a/src/app.c
+++ b/src/app.c
@@ -2841,7 +2841,7 @@ iBool handleCommand_App(const char *cmd) {
: star_Icon " ${status.feeds}");
showCollapsed_Widget(prog, iTrue);
setFixedSize_Widget(findChild_Widget(prog, "feeds.progressbar"),
init_I2(width_Widget(prog) * num / total, -1));
init_I2(total ? width_Widget(prog) * num / total : 0, -1));
}
else if (equal_Command(cmd, "feeds.update.finished")) {
showCollapsed_Widget(prog, iFalse);
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).