fix uninitialzed value warning

This commit is contained in:
Kyle Krueger
2018-09-12 17:46:11 +02:00
parent bfd7828e66
commit e0d52d1a79

View File

@ -283,7 +283,7 @@ void UnityPrintFloat(const UNITY_DOUBLE input_number)
int exponent = 0;
int decimals, digits;
UNITY_INT32 n;
char buf[16];
char buf[16] = {0};
/* scale up or down by powers of 10 */
while (number < 100000.0f / 1e6f) { number *= 1e6f; exponent -= 6; }