summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcoypoop <coypu@sdf.org>2017-11-24 04:31:39 +0200
committerHisham Muhammad <hisham@gobolinux.org>2018-02-04 17:02:30 +0100
commitb84ebfd4e83668ae617c9205b79c98e51574c7b9 (patch)
tree60aedd9a39eb408914495d4cceab992da8310984
parentb86e14d3cf43510be6c1b3bae8b62feb3c5a3578 (diff)
Clarify we are looking for the null termination
Not for a comparison to zero
-rw-r--r--Meter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meter.c b/Meter.c
index 56a6025e..52dbdd9d 100644
--- a/Meter.c
+++ b/Meter.c
@@ -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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy