Clarify we are looking for the null termination

Not for a comparison to zero
This commit is contained in:
coypoop 2017-11-24 04:31:39 +02:00 committed by Hisham Muhammad
parent b86e14d3cf
commit b84ebfd4e8
1 changed files with 1 additions and 1 deletions

View File

@ -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;