summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extras/usb_id/usb_id.c2
-rw-r--r--udev/udevadm-settle.c2
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;