Don't unescape \\ in criteria

This commit is contained in:
Ryan Dwyer 2018-05-11 10:42:24 +10:00
parent 3b0c26d149
commit 0bf0a4fa40

View file

@ -280,8 +280,7 @@ static void unescape(char *value) {
char *readhead = value;
char *writehead = copy;
while (*readhead) {
if (*readhead == '\\' &&
(*(readhead + 1) == '"' || *(readhead + 1) == '\\')) {
if (*readhead == '\\' && *(readhead + 1) == '"') {
// skip the slash
++readhead;
}