]> err.no Git - systemd/commitdiff
IMPORT{cmdline}: start at first char after '='
authorKay Sievers <kay.sievers@vrfy.org>
Mon, 31 May 2010 09:04:42 +0000 (11:04 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 31 May 2010 09:04:42 +0000 (11:04 +0200)
udev/udev-rules.c

index 0676c51dfeb76903768b1a2066fa2627c158fce7..230916a92e2ed6b20ea2629c01a7687fafe4694e 100644 (file)
@@ -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';