From 7f41bfa5f8267807900530325f575752d370796f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 9 Oct 2019 16:08:56 +0300 Subject: [PATCH] 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. --- server/core/modutil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/modutil.cc b/server/core/modutil.cc index 30acb0708..d9c4daa03 100644 --- a/server/core/modutil.cc +++ b/server/core/modutil.cc @@ -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()) {