string-util: add brief explanatory comment

This commit is contained in:
Lennart Poettering
2020-01-31 15:01:39 +01:00
parent 1ee51fbd70
commit 839d1b2014
+2
View File
@@ -1054,6 +1054,8 @@ bool string_is_safe(const char *p) {
if (!p)
return false;
/* Checks if the specified string contains no quotes or control characters */
for (t = p; *t; t++) {
if (*t > 0 && *t < ' ') /* no control characters */
return false;