comparison OrthancStone/UnitTestsSources/GenericToolboxTests.cpp @ 2155:71d6ad7036b7

fix uninitialized variable in test
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 27 Sep 2024 15:59:17 +0200
parents 16c01cc201e7
children
comparison
equal deleted inserted replaced
2154:f8cbfd7175c3 2155:71d6ad7036b7
4340 using OrthancStone::GenericToolbox::StringToDoubleEx; 4340 using OrthancStone::GenericToolbox::StringToDoubleEx;
4341 4341
4342 const char* s = " \t 0.0/.123/3 \t/12.5e-3//-43.1 \t "; 4342 const char* s = " \t 0.0/.123/3 \t/12.5e-3//-43.1 \t ";
4343 4343
4344 int32_t size; 4344 int32_t size;
4345 double r; 4345 double r = -1.0;
4346 const char* p = s; 4346 const char* p = s;
4347 4347
4348 while (*p == ' ' || *p == '\t') 4348 while (*p == ' ' || *p == '\t')
4349 ++p; 4349 ++p;
4350 4350
4388 using OrthancStone::GenericToolbox::StringToDoubleEx; 4388 using OrthancStone::GenericToolbox::StringToDoubleEx;
4389 4389
4390 const char* s = " \t 0.0/.123/3/12.5e-3//-43.1e-2 \t "; 4390 const char* s = " \t 0.0/.123/3/12.5e-3//-43.1e-2 \t ";
4391 4391
4392 int32_t size; 4392 int32_t size;
4393 double r; 4393 double r = -1.0;
4394 const char* p = s; 4394 const char* p = s;
4395 4395
4396 while (*p == ' ' || *p == '\t') 4396 while (*p == ' ' || *p == '\t')
4397 ++p; 4397 ++p;
4398 4398