# HG changeset patch # User Sebastien Jodogne # Date 1727445557 -7200 # Node ID 71d6ad7036b7e405de6686b99cd5d5f86b69c95a # Parent f8cbfd7175c399c0f3514a3a4c61e17d698ceb77 fix uninitialized variable in test diff -r f8cbfd7175c3 -r 71d6ad7036b7 OrthancStone/UnitTestsSources/GenericToolboxTests.cpp --- a/OrthancStone/UnitTestsSources/GenericToolboxTests.cpp Fri Sep 27 15:05:41 2024 +0200 +++ b/OrthancStone/UnitTestsSources/GenericToolboxTests.cpp Fri Sep 27 15:59:17 2024 +0200 @@ -4342,7 +4342,7 @@ const char* s = " \t 0.0/.123/3 \t/12.5e-3//-43.1 \t "; int32_t size; - double r; + double r = -1.0; const char* p = s; while (*p == ' ' || *p == '\t') @@ -4390,7 +4390,7 @@ const char* s = " \t 0.0/.123/3/12.5e-3//-43.1e-2 \t "; int32_t size; - double r; + double r = -1.0; const char* p = s; while (*p == ' ' || *p == '\t')