From 7d2b68b7345deb10e4a002b8327dae8ae943c1a6 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Mon, 31 May 2010 11:04:42 +0200 Subject: [PATCH] IMPORT{cmdline}: start at first char after '=' --- udev/udev-rules.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/udev/udev-rules.c b/udev/udev-rules.c index 0676c51d..230916a9 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'; -- 2.39.5