We only call this function with a string literal, and it makes little
sense to pass something else. Let's simplify.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
return -1;
}
- /* For each character of field, search if it appears in the list
- * of illegal characters. */
- if (illegal && strpbrk(field, illegal)) {
+ if (strpbrk(field, illegal))
return -1;
- }
/* Search if there are non-printable or control characters */
for (cp = field; !streq(cp, ""); cp++) {