Re: [PATCH] builtin/config.c: Fix a sparse warning

2012-10-28 Thread Jeff King
On Sun, Oct 28, 2012 at 09:05:25PM +, Ramsay Jones wrote: > Sparse issues an "Using plain integer as NULL pointer" warning while > checking a 'struct strbuf_list' initializer expression. The initial > field of the struct has pointer type, but the initializer expression > is given as '{0}'. In

[PATCH] builtin/config.c: Fix a sparse warning

2012-10-28 Thread Ramsay Jones
Sparse issues an "Using plain integer as NULL pointer" warning while checking a 'struct strbuf_list' initializer expression. The initial field of the struct has pointer type, but the initializer expression is given as '{0}'. In order to suppress the warning, we simply replace the initializer with