Commit f1401c06 by Stéphane Graber Committed by GitHub

Merge pull request #1716 from brauner/2017-07-28/bugfix

lvm: fix check
parents 41609c46 505dd987
......@@ -314,7 +314,7 @@ int lvm_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname,
len = strlen("/dev/") + strlen(vg) + strlen(cname) + 4 + 2;
new->src = malloc(len);
if (new->src)
if (!new->src)
return -1;
ret = snprintf(new->src, len, "lvm:/dev/%s/%s", vg, cname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment