From: malaterre Date: Thu, 10 Feb 2005 20:53:23 +0000 (+0000) Subject: BUG: In c++ you are never garantee your var is initialized to 0 X-Git-Tag: Version1.0.bp~36 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=92967c3564074740715bcfd833bdd9f6a4e2220e;p=gdcm.git BUG: In c++ you are never garantee your var is initialized to 0 --- diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index d3520ac4..94f5ca5b 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.cxx,v $ Language: C++ - Date: $Date: 2005/02/10 14:23:18 $ - Version: $Revision: 1.222 $ + Date: $Date: 2005/02/10 20:53:23 $ + Version: $Revision: 1.223 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1168,7 +1168,7 @@ void File::AnonymizeNoLoad() gdcm::DocEntry *d; uint32_t offset; uint32_t lgth; - uint32_t valLgth; + uint32_t valLgth = 0; std::string *spaces; for (ListElements::iterator it = AnonymizeList.begin(); it != AnonymizeList.end();