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 committed by Johan Wikman
parent c20c6e8406
commit 7f41bfa5f8

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())
{