1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-03 17:50:03 +03:00

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....
This commit is contained in:
Zdenek Kabelac 2024-05-13 17:13:08 +02:00
parent d58a2644e6
commit c6b5eb5b50

View File

@ -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);