line++;
- if (IN_SET(*strstrip(buf), '#', '\0'))
+ p = strstrip(buf);
+ if (IN_SET(p[0], '#', '\0'))
continue;
- p = buf;
- r = extract_first_word(&p, &field, " \t", 0);
+ r = extract_first_word(&p, &field, NULL, 0);
if (r < 0) {
log_error_errno(r, "Failed to parse config file %s line %u: %m", tmp.path, line);
continue;
line++;
- if (IN_SET(*strstrip(buf), '#', '\0'))
+ p = strstrip(buf);
+ if (IN_SET(p[0], '#', '\0'))
continue;
- p = buf;
- r = extract_first_word(&p, &field, " \t", 0);
+ r = extract_first_word(&p, &field, NULL, 0);
if (r < 0) {
log_error_errno(r, "Failed to parse config file %s line %u: %m", path, line);
continue;