1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +03:00

ensure dm_strdup succeeds

This commit is contained in:
Alasdair Kergon 2009-09-25 18:19:09 +00:00
parent 64c37a20d1
commit bc9b5706e9

View File

@ -217,7 +217,9 @@ static char *_find_dm_name_of_device(dev_t st_rdev)
continue;
if (buf.st_rdev == st_rdev) {
new_name = dm_strdup(name);
if (!(new_name = dm_strdup(name)))
log_error("dm_task_set_name: strdup(%s) failed",
name);
break;
}
}