chiark / gitweb /
[PATCH] added ability to put format specifiers in the CALLOUT program string.
[elogind.git] / udev-add.c
index 634a515c96db8e00665ffc86495e8a076e974089..068fd46f2746bb299b2d5739fc5144556861ff22 100644 (file)
@@ -245,6 +245,8 @@ int udev_add_device(char *path, char *subsystem)
        struct udevice dev;
        int retval = -EINVAL;
 
+       memset(&dev, 0x00, sizeof(dev));
+
        /* for now, the block layer is the only place where block devices are */
        if (strcmp(subsystem, "block") == 0)
                dev.type = 'b';