Explorar o código

FIX: should compare to 0, not NULL

Sebastien Barre %!s(int64=24) %!d(string=hai) anos
pai
achega
dbe20d8d3b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/cmCreateTestSourceList.cxx

+ 1 - 1
Source/cmCreateTestSourceList.cxx

@@ -125,7 +125,7 @@ bool cmCreateTestSourceList::InitialPass(std::vector<std::string> const& argsIn)
     "    }\n"
     "  strcpy(new_string, string);\n"
     "  char *p = new_string;\n"
-    "  while (*p != NULL)\n"
+    "  while (*p != 0)\n"
     "    {\n"
     "    *p = tolower(*p);\n"
     "    ++p;\n"