From e0d52d1a7908a4c0a78c439919c31c71bc2dc8d5 Mon Sep 17 00:00:00 2001 From: Kyle Krueger Date: Wed, 12 Sep 2018 17:46:11 +0200 Subject: [PATCH] fix uninitialzed value warning --- src/unity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unity.c b/src/unity.c index 103bde2..4bad2c2 100644 --- a/src/unity.c +++ b/src/unity.c @@ -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; }