diff options
author | greg@kroah.com <greg@kroah.com> | 2003-11-23 22:25:13 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:02 -0700 |
commit | f3b04a2e0a041aa5546284c5bfc2022ab3e8b15f (patch) | |
tree | d0f1da5b8f8be379d315fd5f07ce33802bf84bd3 /udev-add.c | |
parent | e5fbfe0a13e11c08ed72b67fa4e72a93bcd5de37 (diff) |
[PATCH] added ability to put format specifiers in the CALLOUT program string.
Diffstat (limited to 'udev-add.c')
-rw-r--r-- | udev-add.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/udev-add.c b/udev-add.c index 634a515c96..068fd46f27 100644 --- a/udev-add.c +++ b/udev-add.c @@ -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'; |