summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-03 08:35:24 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-03 08:35:24 +0300
commitc3d37b67f2926787b2499be64fb6f914b917d2ed (patch)
treef0ada91881e6b9447ec096a852ab77b88959972c /src
parente8701945dc4bfa5536c58174e95ada399e61ebe7 (diff)
App: Don't divide by zero
Diffstat (limited to 'src')
-rw-r--r--src/app.c2
1 files changed, 1 insertions, 1 deletions
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) {
2841 : star_Icon " ${status.feeds}"); 2841 : star_Icon " ${status.feeds}");
2842 showCollapsed_Widget(prog, iTrue); 2842 showCollapsed_Widget(prog, iTrue);
2843 setFixedSize_Widget(findChild_Widget(prog, "feeds.progressbar"), 2843 setFixedSize_Widget(findChild_Widget(prog, "feeds.progressbar"),
2844 init_I2(width_Widget(prog) * num / total, -1)); 2844 init_I2(total ? width_Widget(prog) * num / total : 0, -1));
2845 } 2845 }
2846 else if (equal_Command(cmd, "feeds.update.finished")) { 2846 else if (equal_Command(cmd, "feeds.update.finished")) {
2847 showCollapsed_Widget(prog, iFalse); 2847 showCollapsed_Widget(prog, iFalse);