Procházet zdrojové kódy

Make ctkDICOMDataset::GetElementAsInteger return a defined value.

Marco Nolden před 13 roky
rodič
revize
7cd64e002a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Libs/DICOM/Core/ctkDICOMDataset.cpp

+ 1 - 1
Libs/DICOM/Core/ctkDICOMDataset.cpp

@@ -613,7 +613,7 @@ long ctkDICOMDataset::GetElementAsInteger( const DcmTag& tag, unsigned long pos
 
 
   if (!is) throw std::logic_error("Element not found or not an integer");
   if (!is) throw std::logic_error("Element not found or not an integer");
 
 
-  Sint32 i;
+  Sint32 i = 0;
   is->getSint32(i, pos);
   is->getSint32(i, pos);
 
 
   return i;
   return i;