diff options
author | KWSys Robot <kwrobot@kitware.com> | 2013-01-14 14:26:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-01-14 14:41:45 (GMT) |
commit | 4ba0ac7be4bbe38a7cb3334504e69db039288ad8 (patch) | |
tree | bb6826d23194e47fd3f2fc64d9f210c209f17759 /ProcessUNIX.c | |
parent | 6318834b95fb4e666f9c135a883bb953579c3c8a (diff) | |
download | CMake-4ba0ac7be4bbe38a7cb3334504e69db039288ad8.zip CMake-4ba0ac7be4bbe38a7cb3334504e69db039288ad8.tar.gz CMake-4ba0ac7be4bbe38a7cb3334504e69db039288ad8.tar.bz2 |
KWSys 2013-01-14 (6fa1c99f)
Extract upstream KWSys using the following shell commands.
$ git archive --prefix=upstream-kwsys/ 6fa1c99f | tar x
$ git shortlog --no-merges --abbrev=8 --format='%h %s' 608d6b47..6fa1c99f
Brad King (1):
84827cc1 Process: Avoid argv[0]==NULL from parsing empty command line
Rolf Eike Beer (8):
e041cd66 SystemInformation: factor out QueryMemoryBySysconf()
ea850fa0 SystemInformation: factor out QueryProcessorBySysconf()
57f06d49 SystemInformation: count processors with sysconf() on Solaris
c6057a06 SystemInformation: fix "Multi-character character constant"
5a27bd4f SystemInformation: make IsHyperThreadingSupported() return bool
342c0ad2 SystemInformation: query memory size with sysconf() on Solaris
f0b857c1 SystemInformation: cache result of IsHyperThreadingSupported()
ab0c2a09 SystemInformation: try using assembler with BorlandC
Change-Id: I072371ed35eed892a5ef62a9e9e6cad734e961d9
Diffstat (limited to 'ProcessUNIX.c')
-rw-r--r-- | ProcessUNIX.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ProcessUNIX.c b/ProcessUNIX.c index 83838af..2db1254 100644 --- a/ProcessUNIX.c +++ b/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; } |