diff options
author | Martin Mikkelsen <mamikk@mamikk.no> | 2012-10-04 14:27:29 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-10-08 14:35:46 +0200 |
commit | 011afa76fb7b888a0a29e46665708c404f991e5d (patch) | |
tree | 4b39518c728929984756fc75e2b4120a91b05946 /src/shared | |
parent | b3c2cf3d8ed6e228adb18f0701c157a01a076aeb (diff) |
shared: fix broken string_is_safe
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index 64d6e62a53..6310aec8aa 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -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; } |