shared: fix broken string_is_safe

This commit is contained in:
Martin Mikkelsen
2012-10-08 14:35:46 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent b3c2cf3d8e
commit 011afa76fb
+2 -2
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;
}