shared: fix broken string_is_safe

This commit is contained in:
Martin Mikkelsen 2012-10-04 14:27:29 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent b3c2cf3d8e
commit 011afa76fb
1 changed files with 2 additions and 2 deletions

View File

@ -5879,10 +5879,10 @@ bool string_is_safe(const char *p) {
assert(p);
for (t = p; *t; t++) {
if (*p < ' ')
if (*t < ' ')
return false;
if (strchr("\\\"\'", *p))
if (strchr("\\\"\'", *t))
return false;
}