]> granicus.if.org Git - cgit/commit
ui-shared: avoid initializing static variable to zero
authorJohn Keeping <john@keeping.me.uk>
Sun, 8 Mar 2015 16:32:24 +0000 (16:32 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 9 Mar 2015 16:40:24 +0000 (17:40 +0100)
commit94e5f212f55d3f4dd6ce83edb6db823de7eb8cc7
treed2888a5dd5cdaae7a32131d8acd4cf78b91e85a1
parentbd9fb0324d776aa5583a70a6125fce47697701b1
ui-shared: avoid initializing static variable to zero

Sparse complains that we are using a plain integer as a NULL pointer
here, but in fact we do not have to specify a value for this variable at
all since it has static storage duration and thus will be initialized to
NULL by the compiler.

Signed-off-by: John Keeping <john@keeping.me.uk>
ui-shared.c