From c6b5eb5b50c6c8605567b4de191ad4bf389ae1fb Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 13 May 2024 17:13:08 +0200 Subject: [PATCH] dmfilemapd: assign 0 to integer Avoid mixing enumeration assign with 0, so just pick some integer from filemap_monitor, stucture will be fully zeroed anyway.... --- libdm/dm-tools/dmfilemapd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/dm-tools/dmfilemapd.c b/libdm/dm-tools/dmfilemapd.c index 587a18e4c..6ee673213 100644 --- a/libdm/dm-tools/dmfilemapd.c +++ b/libdm/dm-tools/dmfilemapd.c @@ -812,7 +812,7 @@ static const char _mode_names[][8] = { */ int main(int argc, char **argv) { - struct filemap_monitor fm = { 0 }; + struct filemap_monitor fm = { .fd = 0 }; if (!_parse_args(argc, argv, &fm)) { free(fm.path);