summaryrefslogtreecommitdiff
path: root/config/udev.c
diff options
context:
space:
mode:
Diffstat (limited to 'config/udev.c')
-rw-r--r--config/udev.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/config/udev.c b/config/udev.c
index b11c81d8e..1f431c1d3 100644
--- a/config/udev.c
+++ b/config/udev.c
@@ -93,13 +93,7 @@ device_added(struct udev_device *udev_device)
return;
}
- options = calloc(sizeof(*options), 1);
- if (!options)
- return;
-
- options->key = strdup("_source");
- options->value = strdup("server/udev");
- if (!options->key || !options->value)
+ if (!add_option(&options, "_source", "server/udev"))
goto unwind;
parent = udev_device_get_parent(udev_device);