g_error_new_valist, g_error_copy: warn if domain is 0 or message is NULL
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 30 Sep 2011 13:02:29 +0000 (14:02 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 16 Jan 2012 04:21:03 +0000 (23:21 -0500)
commit6d9f874330ee27ea09b383cb30718a492f6539dd
treed69522a6bf595cf4c8e6ff7c671c74b5252bab2b
parent186c15fc879606866215b40f1bfb730b1c47a727
g_error_new_valist, g_error_copy: warn if domain is 0 or message is NULL

Neither of those usages is valid, but there's a lot of use of 0 as a
domain "in the wild", so we can't g_return_if_fail yet.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=660371
glib/gerror.c