From: Lennart Poettering Date: Mon, 25 Nov 2019 15:22:10 +0000 (+0100) Subject: string-util: add brief explanatory comment X-Git-Tag: v245-rc1~41^2~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=839d1b20147470c194765b48c1c4acd1d0602512;p=thirdparty%2Fsystemd.git string-util: add brief explanatory comment --- diff --git a/src/basic/string-util.c b/src/basic/string-util.c index 61809ab0655..8f812d7cbe0 100644 --- a/src/basic/string-util.c +++ b/src/basic/string-util.c @@ -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;