builtin/config.c: Fix a sparse warning
commit5ba1a8a735c721cc66cc030866163f6fdb7f5ecb
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Sun, 28 Oct 2012 21:05:25 +0000 (28 21:05 +0000)
committerJeff King <peff@peff.net>
Mon, 29 Oct 2012 05:48:06 +0000 (29 01:48 -0400)
treefa455c3dabb07ddd38d50ee4450ff055382ff4aa
parente89558988305c3e912c0674faeb814e44563f7fd
builtin/config.c: Fix a sparse warning

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 '{NULL}'.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Jeff King <peff@peff.net>
builtin/config.c