summaryrefslogtreecommitdiff
path: root/udevdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevdb.c')
-rw-r--r--udevdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udevdb.c b/udevdb.c
index 05bd72a5d9..fa26de46d5 100644
--- a/udevdb.c
+++ b/udevdb.c
@@ -130,13 +130,13 @@ static struct busdb_record *busdb_fetch(const char *bus, const char *id)
data = tdb_fetch(udevdb, key);
if (data.dptr == NULL || data.dsize == 0)
return NULL;
-
+
rec = (struct busdb_record *)malloc(sizeof(struct busdb_record));
if (rec == NULL) {
free(data.dptr);
return NULL;
}
-
+
memcpy(rec, data.dptr, sizeof(struct busdb_record));
free(data.dptr);