BUG: Generate 0 into test driver instead of NULL.
This commit is contained in:
parent
ce3edc362f
commit
9676bb4b22
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue