summaryrefslogtreecommitdiffstats
path: root/CommandLineArguments.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'CommandLineArguments.cxx')
-rw-r--r--CommandLineArguments.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/CommandLineArguments.cxx b/CommandLineArguments.cxx
index 5613bd7..5498377 100644
--- a/CommandLineArguments.cxx
+++ b/CommandLineArguments.cxx
@@ -649,10 +649,7 @@ void CommandLineArguments::PopulateVariable(double* variable,
void CommandLineArguments::PopulateVariable(char** variable,
const std::string& value)
{
- if (*variable) {
- delete[] * variable;
- *variable = 0;
- }
+ delete[] * variable;
*variable = new char[value.size() + 1];
strcpy(*variable, value.c_str());
}