diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-02-08 16:02:15 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-02-08 16:02:15 +0100 |
commit | 10b2d011e70ddf9361c61f6147dc88f670d28abd (patch) | |
tree | d72bd63c4fc0a4333e3376d92313bed0ea70c163 /udev | |
parent | 9dc4a84a255107cb9eea906e1de3f546c26bc55c (diff) |
fix NAME= and OPTION+="string_escape=..." logic
Scott discovered this silly bug.
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udev-rules.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c index 52638aeb1d..f0b11aa85b 100644 --- a/udev/udev-rules.c +++ b/udev/udev-rules.c @@ -2371,13 +2371,13 @@ int udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event count = udev_util_replace_chars(name_str, "/"); if (count > 0) info(event->udev, "%i character(s) replaced\n", count); - free(event->name); - event->name = strdup(name_str); - info(event->udev, "NAME '%s' %s:%u\n", - event->name, - &rules->buf[rule->rule.filename_off], - rule->rule.filename_line); } + free(event->name); + event->name = strdup(name_str); + info(event->udev, "NAME '%s' %s:%u\n", + event->name, + &rules->buf[rule->rule.filename_off], + rule->rule.filename_line); break; } case TK_A_DEVLINK: |