From d804714556c6d5a2360f222ce5813a77b488035f Mon Sep 17 00:00:00 2001 From: Cheoleun Moon Date: Wed, 28 Jul 2021 16:38:21 +0900 Subject: Fix the situation that user_data is NULL Change-Id: I080c01396cd81f77b0cf9bd8b58c926e4b865ba1 Signed-off-by: Cheoleun Moon --- src/wifi-aware-private.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wifi-aware-private.c b/src/wifi-aware-private.c index 146a579..fa313c3 100644 --- a/src/wifi-aware-private.c +++ b/src/wifi-aware-private.c @@ -264,8 +264,8 @@ static void __enable_request_reply(GObject *src, GAsyncResult *res, gpointer use if (g_wifi_aware->enabled_cb) { wifi_aware_enabled_cb enabled_cb = g_wifi_aware->enabled_cb; g_wifi_aware->enabled_cb = NULL; - g_wifi_aware->enabled_cb_data = NULL; enabled_cb(error, g_wifi_aware->enabled_cb_data); + g_wifi_aware->enabled_cb_data = NULL; } } -- cgit v1.2.3