]> err.no Git - systemd/commitdiff
fix uninitialized variable warnings
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 24 Oct 2008 07:37:37 +0000 (09:37 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 24 Oct 2008 07:37:37 +0000 (09:37 +0200)
extras/usb_id/usb_id.c
udev/udevadm-settle.c

index 59cdd40b3101017070fdf751d0374a5683ccad48..22f075b5d96aefd28d8d7fe1e354cfdccba3cd22 100644 (file)
@@ -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;
index 5e5a080bc887bebe8be28d986b6f5bccfa4a3063..a274e089d429e7ccf5c5b4fef4f7a8adfff62489 100644 (file)
@@ -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;