From 48797d7d3e73ece0c39bd44e5c512b70500ebd8d Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sat, 21 Nov 2020 14:09:30 -0600 Subject: [PATCH] fix(string): initialize negative flag in SStrToFloat --- storm/String.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storm/String.cpp b/storm/String.cpp index 99fa0df..4f670d9 100644 --- a/storm/String.cpp +++ b/storm/String.cpp @@ -337,7 +337,7 @@ float SStrToFloat(const char* string) { SStrInitialize(); double result; - bool negative; + bool negative = false; if (*string == '-') { negative = true;