summaryrefslogtreecommitdiff
path: root/ACE/ace/Process.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2012-02-28 14:36:02 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2012-02-28 14:36:02 +0000
commit01600e6433717687339ffa535ee0af8bdfb31438 (patch)
treea41005908044382cbca4727b0418c252941d6032 /ACE/ace/Process.cpp
parent808ff368d44a053e5271361b8e3d5169aa023539 (diff)
downloadATCD-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.cpp5
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__.