summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Mikkelsen <mamikk@mamikk.no>2012-10-04 14:27:29 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-10-08 14:35:46 +0200
commit011afa76fb7b888a0a29e46665708c404f991e5d (patch)
tree4b39518c728929984756fc75e2b4120a91b05946 /src
parentb3c2cf3d8ed6e228adb18f0701c157a01a076aeb (diff)
shared: fix broken string_is_safe
Diffstat (limited to 'src')
-rw-r--r--src/shared/util.c4
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;
}