summaryrefslogtreecommitdiffstats
path: root/src/libudev
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-08-03 22:38:10 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-08-04 01:25:23 +0200
commit7e48f3ba71614604e2b7fbb5bcfdb1c848600e89 (patch)
treeedccf279e4c2e67309bf50be68bba835a0d780bb /src/libudev
parentAdd tool to display emergency log message full-screen on boot failure. (diff)
downloadsystemd-7e48f3ba71614604e2b7fbb5bcfdb1c848600e89.tar.xz
systemd-7e48f3ba71614604e2b7fbb5bcfdb1c848600e89.zip
tree-wide: Fix -Wmaybe-uninitialized compilation warnings
Diffstat (limited to 'src/libudev')
-rw-r--r--src/libudev/test-libudev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/test-libudev.c b/src/libudev/test-libudev.c
index 839a6a1a74..e05a062c8e 100644
--- a/src/libudev/test-libudev.c
+++ b/src/libudev/test-libudev.c
@@ -171,7 +171,7 @@ static int enumerate_print_list(struct udev_enumerate *enumerate) {
}
static void test_monitor(struct udev *udev) {
- _cleanup_(udev_monitor_unrefp) struct udev_monitor *udev_monitor;
+ _cleanup_(udev_monitor_unrefp) struct udev_monitor *udev_monitor = NULL;
_cleanup_close_ int fd_ep = -EBADF;
int fd_udev;
struct epoll_event ep_udev = {