core/umount: fix unitialized fields in MountPoint in dm_list_get()

This one might actually might cause a crash.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-03-14 12:38:43 +01:00
parent 539ad37f18
commit b93618644b
+1 -1
View File
@@ -345,7 +345,7 @@ static int dm_list_get(MountPoint **head) {
if (!node)
return -ENOMEM;
m = new(MountPoint, 1);
m = new0(MountPoint, 1);
if (!m) {
free(node);
return -ENOMEM;