diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-08-03 11:30:11 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-08-03 11:30:11 +0000 |
commit | dd55f0e2f4866f0437db33654ae979a3eacf91f7 (patch) | |
tree | 90f974edb4a2dcfb5681b80249152476eb21cfaa /tools | |
parent | INTEGRATION: CWS pj83 (1.3.212); FILE MERGED (diff) | |
download | core-dd55f0e2f4866f0437db33654ae979a3eacf91f7.tar.gz core-dd55f0e2f4866f0437db33654ae979a3eacf91f7.zip |
INTEGRATION: CWS cmcfixes35 (1.13.100); FILE MERGED
2007/07/05 12:59:20 cmc 1.13.100.2: RESYNC: (1.13-1.14); FILE MERGED
2007/07/03 15:50:01 cmc 1.13.100.1: #i79172# avoid double free
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bootstrp/command.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/bootstrp/command.cxx b/tools/bootstrp/command.cxx index 219b61628135..f0e8f80e29eb 100644 --- a/tools/bootstrp/command.cxx +++ b/tools/bootstrp/command.cxx @@ -4,9 +4,9 @@ * * $RCSfile: command.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: hr $ $Date: 2007-06-27 22:05:51 $ + * last change: $Author: hr $ $Date: 2007-08-03 12:30:11 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -195,6 +195,8 @@ CommandLine& CommandLine::operator=(const CommandLine& CCommandLine) delete [] ppArgv[i]; } delete [] ppArgv; + ppArgv = new char * [1]; + ppArgv[0] = NULL; BuildCommand(CommandBuffer); return *this; } @@ -208,6 +210,8 @@ CommandLine& CommandLine::operator=(const char *CommandString) delete [] ppArgv[i]; } delete [] ppArgv; + ppArgv = new char * [1]; + ppArgv[0] = NULL; BuildCommand(CommandBuffer); return *this; |