]> Creatis software - gdcm.git/commitdiff
Avoid segfault when Patient Name is missing
authorjpr <jpr>
Tue, 3 Jun 2008 10:01:14 +0000 (10:01 +0000)
committerjpr <jpr>
Tue, 3 Jun 2008 10:01:14 +0000 (10:01 +0000)
Example/RawToDicom.cxx

index da5f00b2f964465a4dcb95c2051a412f59033cef..db6f3c2c58284c45ca5974ee00e22ca01805a3ff 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: RawToDicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/09/20 11:15:54 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2008/06/03 10:01:14 $
+  Version:   $Revision: 1.15 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -98,7 +98,7 @@ int main(int argc, char *argv[])
    const char *inputFileName  = am->ArgMgrGetString("filein");
    const char *outputFileName = am->ArgMgrGetString("fileout");
    
-   const char *patientName = am->ArgMgrGetString("patientname");
+  const char *patientName = am->ArgMgrGetString("patientname", "g^Fantomas");
    
    int nX = am->ArgMgrWantInt("rows", usage);
    int nY = am->ArgMgrWantInt("lines", usage);