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 commit7e48f3ba71
) (cherry picked from commit550cd149c1
)
This commit is contained in:
parent
883aab2e80
commit
8a5b93fbe6
@ -610,7 +610,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);
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user