diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-24 09:37:37 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-24 09:37:37 +0200 |
commit | f6bb9e981aea06f1a7460868fb60f1a9ff14c504 (patch) | |
tree | f0e9d72adcd7efe5ef6b14a4f6e50dcb96448d06 | |
parent | 34d6a259dc1c32f974b9d9dc6518dba12cb6a4d6 (diff) |
fix uninitialized variable warnings
-rw-r--r-- | extras/usb_id/usb_id.c | 2 | ||||
-rw-r--r-- | udev/udevadm-settle.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extras/usb_id/usb_id.c b/extras/usb_id/usb_id.c index 59cdd40b31..22f075b5d9 100644 --- a/extras/usb_id/usb_id.c +++ b/extras/usb_id/usb_id.c @@ -368,7 +368,7 @@ int main(int argc, char **argv) {} }; struct udev *udev; - struct udev_device *dev; + struct udev_device *dev = NULL; char syspath[UTIL_PATH_SIZE]; const char *devpath; static int export; diff --git a/udev/udevadm-settle.c b/udev/udevadm-settle.c index 5e5a080bc8..a274e089d4 100644 --- a/udev/udevadm-settle.c +++ b/udev/udevadm-settle.c @@ -41,7 +41,7 @@ int udevadm_settle(struct udev *udev, int argc, char *argv[]) {} }; int timeout = DEFAULT_TIMEOUT; - struct udev_queue *udev_queue; + struct udev_queue *udev_queue = NULL; int loop; int rc = 0; |