未验证 提交 eab9283a 编写于 作者: M Mark VanderVoord 提交者: GitHub

Merge pull request #353 from kykrueger/issue-#352-uninitialized-value-warning

Issue #352 uninitialized value warning
......@@ -296,7 +296,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; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册