Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Replace uses of strdup with xstrdup.
[gitweb.git]
/
builtin-zip-tree.c
diff --git
a/builtin-zip-tree.c
b/builtin-zip-tree.c
index a5b834d360ad20223b52cc3ef2eb5848f5bbdc72..1c1f6830c1a8b9303eec3b1c11cfb1805d3049e4 100644
(file)
--- 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 =
x
strdup(argv[2]);
baselen = strlen(base);
break;
case 2:
- base = strdup("");
+ base =
x
strdup("");
baselen = 0;
break;
default: