aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohannes Schickel2009-10-27 18:36:42 +0000
committerJohannes Schickel2009-10-27 18:36:42 +0000
commit60920305998841d41cdbf30c5421bc6a6ca64c42 (patch)
tree121a30ea8033b4f985f40aff177a6e182f9f3f10 /tools
parenta52c45e7505ac7b52d634fece3d9e35d1afe0b23 (diff)
downloadscummvm-rg350-60920305998841d41cdbf30c5421bc6a6ca64c42.tar.gz
scummvm-rg350-60920305998841d41cdbf30c5421bc6a6ca64c42.tar.bz2
scummvm-rg350-60920305998841d41cdbf30c5421bc6a6ca64c42.zip
Add another assert to check for return value of "new".
svn-id: r45443
Diffstat (limited to 'tools')
-rw-r--r--tools/create_msvc/create_msvc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/create_msvc/create_msvc.cpp b/tools/create_msvc/create_msvc.cpp
index c5f0bdab8c..b60bed56eb 100644
--- a/tools/create_msvc/create_msvc.cpp
+++ b/tools/create_msvc/create_msvc.cpp
@@ -1290,7 +1290,9 @@ FileNode *scanFiles(const std::string &dir, const StringList &includeList, const
continue;
}
- result->children.push_back(new FileNode(fileInformation.cFileName));
+ FileNode *child = new FileNode(fileInformation.cFileName);
+ assert(child);
+ result->children.push_back(child);
} while (FindNextFile(fileHandle, &fileInformation) == TRUE);
CloseHandle(fileHandle);