diff options
author | KWSys Robot <kwrobot@kitware.com> | 2014-08-07 13:55:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-08-11 13:30:16 (GMT) |
commit | fe587db415b1cf728f42c5db55c3acbad7a9a529 (patch) | |
tree | 79cf4a96ddcd25c67b4c7036dfdc1e98a0b9e238 /ProcessUNIX.c | |
parent | 158c6d1cffe863fde284d4e5eeeb8129d40ce0e9 (diff) | |
download | CMake-fe587db415b1cf728f42c5db55c3acbad7a9a529.zip CMake-fe587db415b1cf728f42c5db55c3acbad7a9a529.tar.gz CMake-fe587db415b1cf728f42c5db55c3acbad7a9a529.tar.bz2 |
KWSys 2014-08-07 (4d526097)
Extract upstream KWSys using the following shell commands.
$ git archive --prefix=upstream-kwsys/ 4d526097 | tar x
$ git shortlog --no-merges --abbrev=8 --format='%h %s' e787837a..4d526097
Brad King (2):
4791701a SystemTools: Remove ConvertWindowsCommandLineToUnixArguments method
4d526097 Add assert() to quiet Clang scan-build warnings
Change-Id: I15e4ad710a8ad01f96761a89f2c1517f3c2aa835
Diffstat (limited to 'ProcessUNIX.c')
-rw-r--r-- | ProcessUNIX.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ProcessUNIX.c b/ProcessUNIX.c index 241e295..ca9d424 100644 --- a/ProcessUNIX.c +++ b/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]) { |