diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-03 08:35:24 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-03 08:35:24 +0300 |
commit | c3d37b67f2926787b2499be64fb6f914b917d2ed (patch) | |
tree | f0ada91881e6b9447ec096a852ab77b88959972c /src | |
parent | e8701945dc4bfa5536c58174e95ada399e61ebe7 (diff) |
App: Don't divide by zero
Diffstat (limited to 'src')
-rw-r--r-- | src/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |