Sfoglia il codice sorgente

FIX: should compare to 0, not NULL

Sebastien Barre 23 anni fa
parent
commit
dbe20d8d3b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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"
     "    }\n"
     "  strcpy(new_string, string);\n"
     "  strcpy(new_string, string);\n"
     "  char *p = new_string;\n"
     "  char *p = new_string;\n"
-    "  while (*p != NULL)\n"
+    "  while (*p != 0)\n"
     "    {\n"
     "    {\n"
     "    *p = tolower(*p);\n"
     "    *p = tolower(*p);\n"
     "    ++p;\n"
     "    ++p;\n"