mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 00:06:24 +01: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:
parent
6faed43505
commit
48b980ca7d
@ -91,7 +91,7 @@ timeout_cb (gpointer user_data)
|
||||
{
|
||||
gboolean *timed_out = user_data;
|
||||
|
||||
g_assert (!timed_out);
|
||||
g_assert (!*timed_out);
|
||||
*timed_out = TRUE;
|
||||
g_main_context_wakeup (g_main_context_get_thread_default ());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user