Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Permit zero items in drawing a Graph meter
A meter with zero items used to be allowed in GraphMeterMode_draw() until commit 398fb30 added a "nonnull" constraint to sumPositiveValues() function. It caused the use case in GraphMeterMode_draw() an undefined behavior. Fix the caller code so that a meter with `curItems` being 0 is allowed again in Graph mode (`values` may be NULL when `curItems` is 0).
- Loading branch information