From b84ebfd4e83668ae617c9205b79c98e51574c7b9 Mon Sep 17 00:00:00 2001 From: coypoop Date: Fri, 24 Nov 2017 04:31:39 +0200 Subject: [PATCH] Clarify we are looking for the null termination Not for a comparison to zero --- Meter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;