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
committerAnthony G. Basile <blueness@gentoo.org>2014-01-09 16:57:50 -0500
commit77564de3264149c335aa76d3f28b86dadd889028 (patch)
treec27bcfcbe87eb09f8b7eb51d557cf0f31ab46a03 /src/libudev/libudev-device.c
parent079a9c8229692c8c68899a9ab06693f830c1a091 (diff)
libudev: devices received from udev are always initialized
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
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)) {