dbus: Clean up array-array-type property getter
authorJouni Malinen <j@w1.fi>
Sun, 29 Jun 2014 15:20:13 +0000 (18:20 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 29 Jun 2014 15:20:13 +0000 (18:20 +0300)
commit010fc5f507020f69f64b958450eb5136e9d6db77
treecafb98d0deefd13138e565df170687cf727322c9
parentea18024d78bde140fb8f74d216d757816bfd6e9b
dbus: Clean up array-array-type property getter

The previously used design was a bit too complex for static analyzers
(e.g., CID 68131, CID 68133) to understand which resulted in false
warnings about uninitialized memory. Avoid this by explicitly
initializing the pointer array to NULL and also skipping any invalid
NULL entry in the helper function.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/dbus/dbus_new_handlers.c
wpa_supplicant/dbus/dbus_new_handlers_p2p.c