Lagrange [work/v1.7]

App: Don't divide by zero

=> c3d37b67f2926787b2499be64fb6f914b917d2ed

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);
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.7/cdiff/c3d37b67f2926787b2499be64fb6f914b917d2ed
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
57.103593 milliseconds
Gemini-to-HTML Time
0.230898 milliseconds

This content has been proxied by September (ba2dc).