diff --git a/application.cpp b/application.cpp index a9b23a437..70b0f84d5 100644 --- a/application.cpp +++ b/application.cpp @@ -465,7 +465,7 @@ void application::print_default_config(std::ostream& os) { else { // The string is formatted "arg (=)" example.erase(0, 6); - example.erase(example.length()-1); + if(!example.empty()) example.erase(example.length()-1); os << "# " << od->long_name() << " = " << example << std::endl; } }