send-pack: remove remote reference limit
[gitweb.git] / builtin-zip-tree.c
index a5b834d360ad20223b52cc3ef2eb5848f5bbdc72..1c1f6830c1a8b9303eec3b1c11cfb1805d3049e4 100644 (file)
@@ -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: