diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-30 00:21:49 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-12-01 19:47:08 -0500 |
commit | 7057e3da01ef2231c170b05511f0e6c6d2577b6e (patch) | |
tree | b46740cbd2f3ba4ce9160bd673e7f92db0b3463b /src/udev/udev-rules.c | |
parent | 27c0fc5c9840953152a057db2a4666f433cb04bf (diff) |
udev: strings in C are NUL-terminated anyway, no need to add a second NUL...
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r-- | src/udev/udev-rules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 7944624434..f51691143b 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -1072,7 +1072,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; |