string-util: add brief explanatory comment

This commit is contained in:
Lennart Poettering 2019-11-25 16:22:10 +01:00
parent 1ee51fbd70
commit 839d1b2014
1 changed files with 2 additions and 0 deletions

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;