diff options
author | coypoop <coypu@sdf.org> | 2017-11-24 04:31:39 +0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-02-04 17:02:30 +0100 |
commit | b84ebfd4e83668ae617c9205b79c98e51574c7b9 (patch) | |
tree | 60aedd9a39eb408914495d4cceab992da8310984 /Meter.c | |
parent | b86e14d3cf43510be6c1b3bae8b62feb3c5a3578 (diff) |
Clarify we are looking for the null termination
Not for a comparison to zero
Diffstat (limited to 'Meter.c')
-rw-r--r-- | Meter.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -152,7 +152,7 @@ int Meter_humanUnit(char* buffer, unsigned long int value, int size) { if (value / 1024 < powi) break; - if (prefix[1] == 0) + if (prefix[1] == '\0') break; powi *= 1024; |