diff options
Diffstat (limited to 'notes.c')
| -rw-r--r-- | notes.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -1035,7 +1035,7 @@ struct notes_tree **load_notes_trees(struct string_list *refs, int flags)  	struct string_list_item *item;  	int counter = 0;  	struct notes_tree **trees; -	trees = xmalloc((refs->nr+1) * sizeof(struct notes_tree *)); +	ALLOC_ARRAY(trees, refs->nr + 1);  	for_each_string_list_item(item, refs) {  		struct notes_tree *t = xcalloc(1, sizeof(struct notes_tree));  		init_notes(t, item->string, combine_notes_ignore, flags); | 
