g_simple_async_result_is_valid: fix for NULL source tag
authorDan Winship <danw@gnome.org>
Sun, 16 Feb 2014 14:24:04 +0000 (09:24 -0500)
committerDan Winship <danw@gnome.org>
Sun, 16 Feb 2014 14:24:04 +0000 (09:24 -0500)
commit89022761018fd87a19b0c4cf5a9c9fe8575a743a
treea59a573eb2f60d03d40c6d91bd90852e886f4566
parent9c135707cb0653cc0f7d66ee67921428fa912611
g_simple_async_result_is_valid: fix for NULL source tag

If a GSimpleAsyncResult has a NULL source tag, allow it to compare
valid to a non-NULL source tag in g_simple_async_result_is_valid(), to
simplify cases where, eg, g_simple_async_result_new() and
g_simple_async_result_report_error_in_idle() are both used.

https://bugzilla.gnome.org/show_bug.cgi?id=721458
gio/gsimpleasyncresult.c
gio/tests/simple-async-result.c