summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 851e407..9a57223 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -548,14 +548,11 @@ bool cmMakefile::ReadListFile(const char* filename_in,
filenametoread = filename_in;
}
- if (external_in)
+ if (external_in && filename_in)
{
- if (filename_in)
- {
- filenametoread =
- cmSystemTools::CollapseFullPath(filename_in,
- this->cmStartDirectory.c_str());
- }
+ filenametoread =
+ cmSystemTools::CollapseFullPath(filename_in,
+ this->cmStartDirectory.c_str());
}
if (!filenametoread.empty())