Re: [PATCH] oidmap: ensure map is initialized

2017-12-27 Thread Junio C Hamano
Brandon Williams writes: > Ensure that an oidmap is initialized before attempting to add, remove, > or retrieve an entry by simply performing the initialization step > before accessing the underlying hashmap. > > Signed-off-by: Brandon Williams > --- Looks sane. Thanks for illustrating the ide

Re: [PATCH] oidmap: ensure map is initialized

2017-12-22 Thread Johannes Schindelin
Hi Brandon, On Fri, 22 Dec 2017, Brandon Williams wrote: > Ensure that an oidmap is initialized before attempting to add, remove, > or retrieve an entry by simply performing the initialization step > before accessing the underlying hashmap. > > Signed-off-by: Brandon Williams > --- > oidmap.c

[PATCH] oidmap: ensure map is initialized

2017-12-22 Thread Brandon Williams
Ensure that an oidmap is initialized before attempting to add, remove, or retrieve an entry by simply performing the initialization step before accessing the underlying hashmap. Signed-off-by: Brandon Williams --- oidmap.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/oidmap.c