diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index b14116037..6fb744eb3 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -312,7 +312,7 @@ void cmExpandSourceListArguments(void *arg, } mf->ExpandSourceListArguments(args2, result, startArgumentIndex); int resargc = static_cast(result.size()); - char **resargv = NULL; + char **resargv = 0; if (resargc) { resargv = (char **)malloc(resargc*sizeof(char *)); diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx index 16e16ee92..3c098f513 100644 --- a/Source/cmLoadCommandCommand.cxx +++ b/Source/cmLoadCommandCommand.cxx @@ -114,7 +114,7 @@ bool cmLoadedCommand::InitialPass(std::vector const& args) // create argc and argv and then invoke the command int argc = static_cast (args.size()); - char **argv = NULL; + char **argv = 0; if (argc) { argv = (char **)malloc(argc*sizeof(char *));