Add checks for NULL pointer in arrays.
authorKrzesimir Nowak <qdlacz@gmail.com>
Wed, 13 Jan 2010 17:40:17 +0000 (18:40 +0100)
committerKrzesimir Nowak <qdlacz@gmail.com>
Wed, 3 Feb 2010 20:48:39 +0000 (21:48 +0100)
commit33b011ce7d9415d60493595bbfe14dbc02c2d201
treeb93cdb91ddc01f315f67c5ae503349fb08b525b9
parent2b121c02efc13f4b8c6c771b33a2363a21e7757f
Add checks for NULL pointer in arrays.

Fixes: Bug 599197 -  array ref and unref functions crash on NULL
array.

* garray.c: Added safety guards to all public functions, which did
not have them earlier. Now when NULL is passed to them, they will
issue a warning and return, instead of segfaulting.
glib/garray.c