aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_match.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/cmd_match.cc')
-rw-r--r--src/clients/cave/cmd_match.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_match.cc b/src/clients/cave/cmd_match.cc
index 220f150be..077f6ccea 100644
--- a/src/clients/cave/cmd_match.cc
+++ b/src/clients/cave/cmd_match.cc
@@ -148,7 +148,10 @@ namespace
std::string stringify_string_pair(const std::pair<const std::string, std::string> & s)
{
- return s.first + "=" + s.second;
+ if (s.first.empty())
+ return s.second;
+ else
+ return s.first + "=" + s.second;
}
struct SpecTreeAsString