From: Kay Sievers Date: Fri, 24 Oct 2008 07:37:37 +0000 (+0200) Subject: fix uninitialized variable warnings X-Git-Tag: 174~1389 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6bb9e981aea06f1a7460868fb60f1a9ff14c504;p=systemd fix uninitialized variable warnings --- 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;