Browse Source

BUG: Generate 0 into test driver instead of NULL.

Brad King 23 years ago
parent
commit
9676bb4b22
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmCreateTestSourceList.cxx

+ 1 - 1
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"