summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/ProcessUNIX.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-08-12 13:48:30 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-08-12 13:48:30 (GMT)
commit354c792c9de5759a4484dc157a206e06012e83c6 (patch)
treea83cf31c9a1d38fa968c3d01df15ef1417efe4d3 /Source/kwsys/ProcessUNIX.c
parent9c103ae80a15b0eccabec8b74812f0f9e9c17123 (diff)
parent6c32d43ce2d8db87e348b281d9afe981d6ebc15d (diff)
downloadCMake-354c792c9de5759a4484dc157a206e06012e83c6.zip
CMake-354c792c9de5759a4484dc157a206e06012e83c6.tar.gz
CMake-354c792c9de5759a4484dc157a206e06012e83c6.tar.bz2
Merge topic 'update-kwsys'
6c32d43c Merge branch 'upstream-kwsys' into update-kwsys 137a0251 KWSys 2014-08-11 (32023afd) 51c82c3a Merge branch 'upstream-kwsys' into update-kwsys fe587db4 KWSys 2014-08-07 (4d526097)
Diffstat (limited to 'Source/kwsys/ProcessUNIX.c')
-rw-r--r--Source/kwsys/ProcessUNIX.c2
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])
{