projects
/
platform
/
upstream
/
btrfs-progs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs-progs: subvol: change set-default to also accept path
[platform/upstream/btrfs-progs.git]
/
send-utils.c
diff --git
a/send-utils.c
b/send-utils.c
index
8b7f2d3
..
384cc5b
100644
(file)
--- a/
send-utils.c
+++ b/
send-utils.c
@@
-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) {