X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fudev%2Fudev-rules.c;h=c9a0197534228608b65e1d69a74c71c5d59dca01;hb=3e2cda698f05d7290a8b9444d2c7d5c2599b2a27;hp=447a86864ea39688a75f9037041fd40a70334915;hpb=9f5ecdb0b11557be41c065f460bb22ab52bb0034;p=elogind.git diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 447a86864..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 (!strchr(NEWLINE "\0", *linepos)) { + if (!strchr(NEWLINE, *linepos)) { char buf[2] = {*linepos}; _cleanup_free_ char *tmp;