diff options
Diffstat (limited to 'src')
-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; } |