summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapTclCommand.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-07-02 18:03:20 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-07-02 18:03:20 (GMT)
commit44062bf4b7862aacb7c14846d36567f6ec76b4aa (patch)
treea996e61dc1e14b873f0a8d97fc8b1515e001e201 /Source/cmVTKWrapTclCommand.cxx
parent238fe481f3df2ddc993f85f236ec01162e14372d (diff)
downloadCMake-44062bf4b7862aacb7c14846d36567f6ec76b4aa.zip
CMake-44062bf4b7862aacb7c14846d36567f6ec76b4aa.tar.gz
CMake-44062bf4b7862aacb7c14846d36567f6ec76b4aa.tar.bz2
Better error checking.
Diffstat (limited to 'Source/cmVTKWrapTclCommand.cxx')
-rw-r--r--Source/cmVTKWrapTclCommand.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx
index fcf5c45..8c76017 100644
--- a/Source/cmVTKWrapTclCommand.cxx
+++ b/Source/cmVTKWrapTclCommand.cxx
@@ -101,6 +101,11 @@ bool cmVTKWrapTclCommand::InitialPass(std::vector<std::string>& args)
j != sources.end(); ++j)
{
cmMakefile::SourceMap::iterator l = Classes.find(*j);
+ if (l == Classes.end())
+ {
+ this->SetError("bad source list passed to VTKWrapTclCommand");
+ return false;
+ }
for(std::vector<cmSourceFile>::iterator i = l->second.begin();
i != l->second.end(); i++)
{