Fixing bug when choosing -h | -help flag.
authorszostak <szostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 23 Sep 2007 12:14:37 +0000 (12:14 +0000)
committerszostak <szostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 23 Sep 2007 12:14:37 +0000 (12:14 +0000)
HLT/MUON/utils/dHLTdumpraw.cxx

index bbb92c82d44f9df664bb57a6774193bfba035de3..efac094c5a28974676988fd135ca371d7c06c5a9 100644 (file)
@@ -1307,7 +1307,7 @@ int main(int argc, const char** argv)
        {
                returnCode = ParseCommandLine(argc, argv, filename, continueParse, type);
 
-               if (returnCode == EXIT_SUCCESS)
+               if (returnCode == EXIT_SUCCESS and filename != NULL)
                {
                        unsigned long bufferSize = 0;
                        returnCode = ReadFile(filename, buffer, bufferSize);