aboutsummaryrefslogtreecommitdiff
path: root/paludis
diff options
context:
space:
mode:
Diffstat (limited to 'paludis')
-rw-r--r--paludis/stringify_formatter.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/paludis/stringify_formatter.cc b/paludis/stringify_formatter.cc
index beb0fdfa9..c24895fb3 100644
--- a/paludis/stringify_formatter.cc
+++ b/paludis/stringify_formatter.cc
@@ -68,7 +68,11 @@ StringifyFormatter::format(const std::pair<const std::string, std::string> & s,
{
if (_imp->f_str)
return _imp->f_str_str->format(s, k);
- return s.first + "=" + s.second;
+
+ if (s.first.empty())
+ return s.second;
+ else
+ return s.first + "=" + s.second;
}
std::string