chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
bf257ae
)
udev: strings in C are NUL-terminated anyway, no need to add a second NUL...
author
Lennart Poettering
<lennart@poettering.net>
Sat, 29 Nov 2014 23:21:49 +0000
(
00:21
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 29 Nov 2014 23:21:49 +0000
(
00:21
+0100)
src/udev/udev-rules.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-rules.c
b/src/udev/udev-rules.c
index 447a86864ea39688a75f9037041fd40a70334915..c9a0197534228608b65e1d69a74c71c5d59dca01 100644
(file)
--- 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 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;
char buf[2] = {*linepos};
_cleanup_free_ char *tmp;