1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

IMPORT{cmdline}: start at first char after '='

This commit is contained in:
Kay Sievers 2010-05-31 11:04:42 +02:00
parent c4f6dcc4a5
commit 7d2b68b734

View 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';