diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-03-01 21:49:32 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-03-01 21:49:32 +0000 |
commit | 52f76a76828c1093db65943e9ce937fde56e8a75 (patch) | |
tree | 6e4b9ca1e78ad0cb30609d144ebbe6458a7cef4a /tools | |
parent | 0ab5e0e2804333f4c1dfd7f13675ae14f7314171 (diff) | |
download | lvm2-52f76a76828c1093db65943e9ce937fde56e8a75.tar.gz lvm2-52f76a76828c1093db65943e9ce937fde56e8a75.tar.xz lvm2-52f76a76828c1093db65943e9ce937fde56e8a75.zip |
Test alloc fail
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dmsetup.c | 4 |
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 *) ""; |