gsocketaddress: Add an assertion to help static analysis
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 26 Nov 2013 11:09:58 +0000 (11:09 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 27 Nov 2013 10:01:29 +0000 (10:01 +0000)
commit956c58c7f202009d769aefc9bc8adaedccec074d
tree3cba670dbec9de1a5fac4dd4f357ea3274a49166
parentc729f416fb07e723a8404e28241a8096ac438838
gsocketaddress: Add an assertion to help static analysis

The static analyser will check dynamic type assertions and assume that
if they fail, the variable can either have the wrong type, or be NULL
(which is correct). The analyser doesn’t know that other constraints in
the API ensure the variable is non-NULL.

Add a non-null assertion to help the static analyser and shut it up in
this case.

https://bugzilla.gnome.org/show_bug.cgi?id=113075
gio/gsocketaddress.c