summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-device.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-12-18 16:49:19 +0100
committerKay Sievers <kay@vrfy.org>2013-12-18 17:34:22 +0100
commitf6613dd959a1ab49bf061555ada77903397569ad (patch)
tree4303892002bd8e0a37a11ee78c521b9236f1d9de /src/libudev/libudev-device.c
parent63966da86d8e71b1f3f2b57d5448770d526421f9 (diff)
libudev: devices received from udev are always initialized
Diffstat (limited to 'src/libudev/libudev-device.c')
-rw-r--r--src/libudev/libudev-device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c
index 9558ac36d2..06fadf6341 100644
--- a/src/libudev/libudev-device.c
+++ b/src/libudev/libudev-device.c
@@ -538,6 +538,8 @@ int udev_device_read_db(struct udev_device *udev_device, const char *dbfile)
udev_dbg(udev_device->udev, "no db file to read %s: %m\n", dbfile);
return -errno;
}
+
+ /* devices with a database entry are initialized */
udev_device->is_initialized = true;
while (fgets(line, sizeof(line), f)) {