diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2012-02-28 14:36:02 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2012-02-28 14:36:02 +0000 |
commit | 01600e6433717687339ffa535ee0af8bdfb31438 (patch) | |
tree | a41005908044382cbca4727b0418c252941d6032 /ACE/ace/Process.cpp | |
parent | 808ff368d44a053e5271361b8e3d5169aa023539 (diff) | |
download | ATCD-01600e6433717687339ffa535ee0af8bdfb31438.tar.gz |
Tue Feb 28 14:35:36 UTC 2012 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/Process.cpp:
Fixed coverity error
Diffstat (limited to 'ACE/ace/Process.cpp')
-rw-r--r-- | ACE/ace/Process.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ACE/ace/Process.cpp b/ACE/ace/Process.cpp index 547bb636185..b3471897404 100644 --- a/ACE/ace/Process.cpp +++ b/ACE/ace/Process.cpp @@ -1223,7 +1223,10 @@ ACE_Process_Options::command_line (const ACE_TCHAR *format, ...) va_start (argp, format); if (command_line_buf_len_ < 1) - return -1; + { + va_end (argp); + return -1; + } #if !defined (ACE_LACKS_VSNPRINTF) || defined (ACE_HAS_TRIO) // vsnprintf the format and args into command_line_buf__. |