Fix minor defect in get_canonical

The backslash was added instead of assigned. Since the value stored at
that position is always a null byte, assignment and addition would result
in the same outcome.
This commit is contained in:
Markus Mäkelä
2019-10-09 16:08:56 +03:00
parent 121eb93d79
commit 6ea2adef12

View File

@ -1447,7 +1447,7 @@ std::string get_canonical(GWBUF* querybuf)
else if (*it == '\\')
{
// Jump over any escaped values
rval[i++] += *it++;
rval[i++] = *it++;
if (it != buf.end())
{