chiark / gitweb /
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 59cdd40..22f075b 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 5e5a080..a274e08 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;