diff options
author | Brad King <brad.king@kitware.com> | 2014-08-11 13:30:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-08-11 13:30:22 (GMT) |
commit | 51c82c3a66f02192df4db5d51d95f7311bc2181f (patch) | |
tree | 777ae09ff86923433c847253c97fb2c2d4d5f3b0 /Source/kwsys/ProcessUNIX.c | |
parent | 3b0d634f70db6af5469e83bb7c14f687bfafda74 (diff) | |
parent | fe587db415b1cf728f42c5db55c3acbad7a9a529 (diff) | |
download | CMake-51c82c3a66f02192df4db5d51d95f7311bc2181f.zip CMake-51c82c3a66f02192df4db5d51d95f7311bc2181f.tar.gz CMake-51c82c3a66f02192df4db5d51d95f7311bc2181f.tar.bz2 |
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/ProcessUNIX.c')
-rw-r--r-- | Source/kwsys/ProcessUNIX.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c index 241e295..ca9d424 100644 --- a/Source/kwsys/ProcessUNIX.c +++ b/Source/kwsys/ProcessUNIX.c @@ -68,6 +68,7 @@ do. #include <signal.h> /* sigaction */ #include <dirent.h> /* DIR, dirent */ #include <ctype.h> /* isspace */ +#include <assert.h> /* assert */ #if defined(__VMS) # define KWSYSPE_VMS_NONBLOCK , O_NONBLOCK @@ -450,6 +451,7 @@ int kwsysProcess_AddCommand(kwsysProcess* cp, char const* const* command) } for(i=0; i < n; ++i) { + assert(command[i]); /* Quiet Clang scan-build. */ newCommands[cp->NumberOfCommands][i] = strdup(command[i]); if(!newCommands[cp->NumberOfCommands][i]) { |