summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 37f9443)
raw | patch | inline | side by side (parent: 37f9443)
author | Rene Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Sun, 10 Sep 2006 16:10:01 +0000 (18:10 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 10 Sep 2006 20:39:01 +0000 (13:39 -0700) |
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
(cherry picked from 5d2aea4cb383a43e40d47ab69d8ad7a495df6ea2 commit)
Signed-off-by: Junio C Hamano <junkio@cox.net>
(cherry picked from 5d2aea4cb383a43e40d47ab69d8ad7a495df6ea2 commit)
builtin-tar-tree.c | patch | blob | history | |
builtin-zip-tree.c | patch | blob | history |
diff --git a/builtin-tar-tree.c b/builtin-tar-tree.c
index c20eb0e364d683ef03978851619a79cb7840c379..e8e492fa0f9e1efc440c8cd4a429930e0446f62d 100644 (file)
--- a/builtin-tar-tree.c
+++ b/builtin-tar-tree.c
write_global_extended_header(args->commit_sha1);
if (args->base && plen > 0 && args->base[plen - 1] == '/') {
- char *base = strdup(args->base);
+ char *base = xstrdup(args->base);
int baselen = strlen(base);
while (baselen > 0 && base[baselen - 1] == '/')
diff --git a/builtin-zip-tree.c b/builtin-zip-tree.c
index 4e796338af407929d3004dd0ea756a5b20ad659b..fdac2bdd706748c6dbf9541558328bc118e267fe 100644 (file)
--- a/builtin-zip-tree.c
+++ b/builtin-zip-tree.c
zip_dir_size = ZIP_DIRECTORY_MIN_SIZE;
if (args->base && plen > 0 && args->base[plen - 1] == '/') {
- char *base = strdup(args->base);
+ char *base = xstrdup(args->base);
int baselen = strlen(base);
while (baselen > 0 && base[baselen - 1] == '/')