summaryrefslogtreecommitdiff
path: root/Source/cmCreateTestSourceList.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-05 18:05:12 -0500
committerBrad King <brad.king@kitware.com>2003-02-05 18:05:12 -0500
commit9676bb4b22687e1265adc13647c078991d3b4c85 (patch)
treecb6c0b4c893a205d57fe2fdabfec036187e0c60e /Source/cmCreateTestSourceList.cxx
parentce3edc362fd3b974ac1c29f1603ba071eb753fe2 (diff)
downloadcmake-9676bb4b22687e1265adc13647c078991d3b4c85.tar.gz
BUG: Generate 0 into test driver instead of NULL.
Diffstat (limited to 'Source/cmCreateTestSourceList.cxx')
-rw-r--r--Source/cmCreateTestSourceList.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCreateTestSourceList.cxx b/Source/cmCreateTestSourceList.cxx
index 8de88656c7..cef2d46d99 100644
--- a/Source/cmCreateTestSourceList.cxx
+++ b/Source/cmCreateTestSourceList.cxx
@@ -199,7 +199,7 @@ bool cmCreateTestSourceList::InitialPass(std::vector<std::string> const& args)
" new_string = (char *)malloc(sizeof(char) * (size_t)(strlen(string) + 1));\n"
" if (!new_string)\n"
" {\n"
- " return NULL;\n"
+ " return 0;\n"
" }\n"
" strcpy(new_string, string);\n"
" p = new_string;\n"