Re: [PATCH] dir.c: clean the entire struct in clear_exclude_list()

2015-12-28 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Make sure "el" can be reuseable again. The problem was el->alloc is > not cleared and may cause segfaults next time because add_exclude() > thinks el->excludes (being NULL) has enough space. Just clear the > entire struct to be safe. OK. If

[PATCH] dir.c: clean the entire struct in clear_exclude_list()

2015-12-26 Thread Nguyễn Thái Ngọc Duy
Make sure "el" can be reuseable again. The problem was el->alloc is not cleared and may cause segfaults next time because add_exclude() thinks el->excludes (being NULL) has enough space. Just clear the entire struct to be safe. Signed-off-by: Nguyễn Thái Ngọc Duy --- This was