chiark / gitweb /
detect-virt: install with fs caps by default to allow unprivileged access
[elogind.git] / src / shared / util.c
index 64d6e62a5323b573d87c3f32f2ee76618212be59..6310aec8aaf94342a1e4b141f1d3c8b91220dde6 100644 (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;
         }