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:
Bastien Nocera 2024-11-13 10:32:19 +01:00
parent 6faed43505
commit 48b980ca7d

View File

@ -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 ());