summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-05-31 11:04:42 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-05-31 11:04:42 +0200
commit7d2b68b7345deb10e4a002b8327dae8ae943c1a6 (patch)
treec86eed2c9c9ffca73867b3db43e985570fabbe0d /udev
parentc4f6dcc4a5c774c4c5c60c7024d59081deecc7f8 (diff)
IMPORT{cmdline}: start at first char after '='
Diffstat (limited to 'udev')
-rw-r--r--udev/udev-rules.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c
index 0676c51dfe..230916a92e 100644
--- a/udev/udev-rules.c
+++ b/udev/udev-rules.c
@@ -2360,8 +2360,10 @@ int udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event
udev_list_entry_set_flags(entry, 1);
imported = true;
} else if (pos[0] == '=') {
- const char *value = &pos[1];
+ const char *value;
+ pos++;
+ value = pos;
while (pos[0] != '\0' && !isspace(pos[0]))
pos++;
pos[0] = '\0';