From f6bb9e981aea06f1a7460868fb60f1a9ff14c504 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 24 Oct 2008 09:37:37 +0200 Subject: [PATCH] fix uninitialized variable warnings --- extras/usb_id/usb_id.c | 2 +- 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 59cdd40b..22f075b5 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 5e5a080b..a274e089 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; -- 2.39.5