From e94eb1fac98d0e098fd6750c54743c592ec90f7b Mon Sep 17 00:00:00 2001 From: jpr Date: Tue, 3 Jun 2008 10:01:14 +0000 Subject: [PATCH] Avoid segfault when Patient Name is missing --- Example/RawToDicom.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Example/RawToDicom.cxx b/Example/RawToDicom.cxx index da5f00b2..db6f3c2c 100755 --- a/Example/RawToDicom.cxx +++ b/Example/RawToDicom.cxx @@ -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); -- 2.45.0