mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +02:00
appmonitor: Fix warning building test
gio/tests/appmonitor.c: In function ‘timeout_cb’: gio/tests/appmonitor.c:95:14: warning: null pointer dereference [-Wnull-dereference] 95 | *timed_out = TRUE;
This commit is contained in:
@@ -91,7 +91,7 @@ timeout_cb (gpointer user_data)
|
|||||||
{
|
{
|
||||||
gboolean *timed_out = user_data;
|
gboolean *timed_out = user_data;
|
||||||
|
|
||||||
g_assert (!timed_out);
|
g_assert (!*timed_out);
|
||||||
*timed_out = TRUE;
|
*timed_out = TRUE;
|
||||||
g_main_context_wakeup (g_main_context_get_thread_default ());
|
g_main_context_wakeup (g_main_context_get_thread_default ());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user