summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/dmsetup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 34f370d1..d98da274 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -380,7 +380,9 @@ static struct dm_split_name *_get_split_name(const char *uuid, const char *name,
return NULL;
}
- split_name->subsystem = _extract_uuid_prefix(uuid, separator);
+ if (!(split_name->subsystem = _extract_uuid_prefix(uuid, separator)))
+ return_NULL;
+
split_name->vg_name = split_name->lv_name =
split_name->lv_layer = (char *) "";