Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/strbuf-add-real-path'
[gitweb.git]
/
worktree.c
diff --git
a/worktree.c
b/worktree.c
index d633761575bff4811fa4f3f3822807b1f77f5ecb..d7b911aac730001b466379c26faa390fb21a5bfb 100644
(file)
--- a/
worktree.c
+++ b/
worktree.c
@@
-175,7
+175,7
@@
struct worktree **get_worktrees(unsigned flags)
struct dirent *d;
int counter = 0, alloc = 2;
-
list = xmalloc(alloc * sizeof(struct worktree *)
);
+
ALLOC_ARRAY(list, alloc
);
list[counter++] = get_main_worktree();