1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-06 13:17:44 +03:00

tree-wide: Fix -Wmaybe-uninitialized compilation warnings

(cherry picked from commit 7e48f3ba71)
(cherry picked from commit 550cd149c1)
(cherry picked from commit 8a5b93fbe6)
This commit is contained in:
Daan De Meyer 2023-08-03 22:38:10 +02:00 committed by Luca Boccassi
parent 37a8c57211
commit 62c62cb2ae
2 changed files with 2 additions and 2 deletions

View File

@ -608,7 +608,7 @@ static int fs_validate(
sd_id128_t *ret_found_uuid) {
_cleanup_free_ char *fstype = NULL;
sd_id128_t u;
sd_id128_t u = SD_ID128_NULL; /* avoid false maybe-unitialized warning */
int r;
assert(dm_node);

View File

@ -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 = {