Mercurial > hg > orthanc-stone
changeset 2155:71d6ad7036b7
fix uninitialized variable in test
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Sep 2024 15:59:17 +0200 |
parents | f8cbfd7175c3 |
children | 340bde744884 |
files | OrthancStone/UnitTestsSources/GenericToolboxTests.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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')