summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-30 00:21:49 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-30 00:21:49 +0100
commit2783fe064b36a747d5de05493c0bdc5b029c445e (patch)
tree4b590a61c9d341cc1e1d09c9df881d9cecc461d6
parentbf257aed057efd113f1b84e037fde09ffeed32ee (diff)
udev: strings in C are NUL-terminated anyway, no need to add a second NUL...
-rw-r--r--src/udev/udev-rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index 447a86864e..c9a0197534 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;