From 4675ab6ff9b7169be71381ad8dd86a099977f000 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 29 May 2020 15:24:32 -0500 Subject: [PATCH] Add support for empty "" default value --- application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }