]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
string-util: add brief explanatory comment
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Nov 2019 15:22:10 +0000 (16:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 31 Jan 2020 14:01:39 +0000 (15:01 +0100)
src/basic/string-util.c

index 61809ab06559376f6c29a1893993ee1593ae4302..8f812d7cbe07ebdb31e3dd581796c8144327b68b 100644 (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;