summaryrefslogtreecommitdiffstats
path: root/src/libudev/test-libudev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libudev/test-libudev.c')
-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 = {