Commit 546e7caf authored by Max Kellermann's avatar Max Kellermann

db/proxy: merge redundant string::push_back() calls

parent d9926a1c
...@@ -254,12 +254,10 @@ dquote(std::string &out, const char *in) ...@@ -254,12 +254,10 @@ dquote(std::string &out, const char *in)
case '\\': case '\\':
case '"': case '"':
out.push_back('\\'); out.push_back('\\');
out.push_back(*in);
break; break;
default:
out.push_back(*in);
} }
out.push_back(*in);
} }
out.push_back('"'); out.push_back('"');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment