X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fudev%2Fudev-rules.c;h=c9a0197534228608b65e1d69a74c71c5d59dca01;hb=1693a943ca581aca2beebb4c812ec6c9f17b8164;hp=131abd69f5b46905304a565d323e915d630c7a89;hpb=6501b52d358aa2c7fe28e477f9d5acf0a2991d32;p=elogind.git diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 131abd69f..c9a019753 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -1067,7 +1067,7 @@ static int add_rule(struct udev_rules *rules, char *line, /* If we aren't at the end of the line, this is a parsing error. * Make a best effort to describe where the problem is. */ - if (*linepos != '\n') { + if (!strchr(NEWLINE, *linepos)) { char buf[2] = {*linepos}; _cleanup_free_ char *tmp;