Browse Source

BUG: fix for seg fault bug #3815

Bill Hoffman 19 years ago
parent
commit
46c6442ce2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/cmMacroCommand.cxx

+ 4 - 0
Source/cmMacroCommand.cxx

@@ -235,6 +235,10 @@ bool cmMacroHelperCommand::InvokeInitialPass
       }
     if(!this->Makefile->ExecuteCommand(newLFF))
       {
+      if(!args[0].FilePath)
+        {
+        args[0].FilePath = "Unknown";
+        }
       cmOStringStream error;
       error << "Error in cmake code at\n"
             << args[0].FilePath << ":" << args[0].Line << ":\n"