summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eaab2f5)
raw | patch | inline | side by side (parent: eaab2f5)
author | Benjamin Gilbert <bgilbert@cs.cmu.edu> | |
Wed, 16 Apr 2014 20:27:07 +0000 (16:27 -0400) | ||
committer | Benjamin Gilbert <bgilbert@cs.cmu.edu> | |
Wed, 16 Apr 2014 20:27:07 +0000 (16:27 -0400) |
src/lvm.c | patch | blob | history |
diff --git a/src/lvm.c b/src/lvm.c
index 97d8017094374114a850cd01f08f2c077817540e..cbf244b3530309e2149aa8ee2b33201ae8b443e7 100644 (file)
--- a/src/lvm.c
+++ b/src/lvm.c
lvm_submit (vg_name, "free", lvm_vg_get_free_size(vg));
lvs = lvm_vg_list_lvs(vg);
+ if (lvs == NULL)
+ return;
dm_list_iterate_items(lvl, lvs) {
name = lvm_lv_get_name(lvl->lv);
attrs = lvm_lv_get_attr(lvl->lv);