saif: skip escape character instead of copying escaped one (#229)

This commit is contained in:
Mateusz Gancarz 2025-04-04 15:23:40 -07:00 committed by GitHub
parent de323aa543
commit 30de039c33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -196,9 +196,7 @@ SaifReader::unescaped(const char *token)
string unescaped;
for (const char *t = token; *t; t++) {
char ch = *t;
if (ch == escape_)
unescaped += *(t+1);
else
if (ch != escape_)
// Just the normal noises.
unescaped += ch;
}