diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2010-05-31 11:04:42 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-05-31 11:04:42 +0200 |
commit | 7d2b68b7345deb10e4a002b8327dae8ae943c1a6 (patch) | |
tree | c86eed2c9c9ffca73867b3db43e985570fabbe0d /udev/udev-rules.c | |
parent | c4f6dcc4a5c774c4c5c60c7024d59081deecc7f8 (diff) |
IMPORT{cmdline}: start at first char after '='
Diffstat (limited to 'udev/udev-rules.c')
-rw-r--r-- | udev/udev-rules.c | 4 |
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'; |