btrfs-progs: prop: also allow "none" to disable compression
[platform/upstream/btrfs-progs.git] / send-utils.c
index 8b7f2d3..384cc5b 100644 (file)
@@ -501,6 +501,10 @@ struct subvol_info *subvol_uuid_search2(struct subvol_uuid_search *s,
        info->rtransid = btrfs_root_rtransid(&root_item);
        if (type == subvol_search_by_path) {
                info->path = strdup(path);
+               if (!info->path) {
+                       ret = -ENOMEM;
+                       goto out;
+               }
        } else {
                info->path = malloc(PATH_MAX);
                if (!info->path) {