diff options
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r-- | src/udev/udev-event.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index bda06385ea..978b21832d 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -877,12 +877,11 @@ void udev_event_execute_rules(struct udev_event *event, udev_device_ensure_usec_initialized(event->dev, event->dev_db); /* (re)write database file */ - udev_device_update_db(dev); udev_device_tag_index(dev, event->dev_db, true); + udev_device_update_db(dev); udev_device_set_is_initialized(dev); - udev_device_unref(event->dev_db); - event->dev_db = NULL; + event->dev_db = udev_device_unref(event->dev_db); } } |