diff options
author | Brad King <brad.king@kitware.com> | 2013-01-14 14:41:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-01-14 14:41:52 (GMT) |
commit | e2c756fcf06058249392d7daba4f6740dd437d2b (patch) | |
tree | 5729eb6b774fd485feb9ae369cc84bd8d23002ac /Source/kwsys/ProcessUNIX.c | |
parent | 6f57a9041e8a609ca45a7b26af5118f492b83ac2 (diff) | |
parent | 4ba0ac7be4bbe38a7cb3334504e69db039288ad8 (diff) | |
download | CMake-e2c756fcf06058249392d7daba4f6740dd437d2b.zip CMake-e2c756fcf06058249392d7daba4f6740dd437d2b.tar.gz CMake-e2c756fcf06058249392d7daba4f6740dd437d2b.tar.bz2 |
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/ProcessUNIX.c')
-rw-r--r-- | Source/kwsys/ProcessUNIX.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c index 83838af..2db1254 100644 --- a/Source/kwsys/ProcessUNIX.c +++ b/Source/kwsys/ProcessUNIX.c @@ -418,9 +418,10 @@ int kwsysProcess_AddCommand(kwsysProcess* cp, char const* const* command) parse it. */ newCommands[cp->NumberOfCommands] = kwsysSystem_Parse_CommandForUnix(*command, 0); - if(!newCommands[cp->NumberOfCommands]) + if(!newCommands[cp->NumberOfCommands] || + !newCommands[cp->NumberOfCommands][0]) { - /* Out of memory. */ + /* Out of memory or no command parsed. */ free(newCommands); return 0; } |