chiark / gitweb /
udev: fix a few issues detected by the llvm static analyzer
[elogind.git] / src / udev / udevadm-settle.c
index d7fbc9e5605ac12c00d9d3d93015f34a94879347..19c1e99ccbcc81846689a9175de8eb0f7a3dd3a7 100644 (file)
@@ -53,7 +53,7 @@ static int adm_settle(struct udev *udev, int argc, char *argv[])
         int quiet = 0;
         const char *exists = NULL;
         unsigned int timeout = 120;
         int quiet = 0;
         const char *exists = NULL;
         unsigned int timeout = 120;
-        struct pollfd pfd[1];
+        struct pollfd pfd[1] = { {.fd = -1}, };
         struct udev_queue *udev_queue = NULL;
         int rc = EXIT_FAILURE;
 
         struct udev_queue *udev_queue = NULL;
         int rc = EXIT_FAILURE;