Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
verify-tag: move tag verification code to tag.c
[gitweb.git]
/
builtin
/
worktree.c
diff --git
a/builtin/worktree.c
b/builtin/worktree.c
index 20cf67a549b0d293f42e7f7c21f8822d06aa9c7c..38b56096bd3b914d1128e0bebb5c964a3cdd1b74 100644
(file)
--- a/
builtin/worktree.c
+++ b/
builtin/worktree.c
@@
-52,7
+52,7
@@
static int prune_worktree(const char *id, struct strbuf *reason)
return 1;
}
len = st.st_size;
- path = xmalloc
(len + 1
);
+ path = xmalloc
z(len
);
read_in_full(fd, path, len);
close(fd);
while (len && (path[len - 1] == '\n' || path[len - 1] == '\r'))