summaryrefslogtreecommitdiff
path: root/builtin-zip-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin-zip-tree.c')
-rw-r--r--builtin-zip-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-zip-tree.c b/builtin-zip-tree.c
index a5b834d..1c1f683 100644
--- a/builtin-zip-tree.c
+++ b/builtin-zip-tree.c
@@ -311,11 +311,11 @@ int cmd_zip_tree(int argc, const char **argv, const char *prefix)
switch (argc) {
case 3:
- base = strdup(argv[2]);
+ base = xstrdup(argv[2]);
baselen = strlen(base);
break;
case 2:
- base = strdup("");
+ base = xstrdup("");
baselen = 0;
break;
default: