From 60920305998841d41cdbf30c5421bc6a6ca64c42 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 27 Oct 2009 18:36:42 +0000 Subject: Add another assert to check for return value of "new". svn-id: r45443 --- tools/create_msvc/create_msvc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') 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); -- cgit v1.2.3