core/umount: fix unitialized fields in MountPoint in dm_list_get()
This one might actually might cause a crash.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user