[systemd-commits] src/udev
Lennart Poettering
lennart at kemper.freedesktop.org
Sat Nov 29 15:22:16 PST 2014
src/udev/udev-rules.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2783fe064b36a747d5de05493c0bdc5b029c445e
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Nov 30 00:21:49 2014 +0100
udev: strings in C are NUL-terminated anyway, no need to add a second NUL...
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index 447a868..c9a0197 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;
More information about the systemd-commits
mailing list