aboutsummaryrefslogtreecommitdiff
path: root/src/social
diff options
context:
space:
mode:
Diffstat (limited to 'src/social')
-rw-r--r--src/social/gnunet-social.c2
-rw-r--r--src/social/social_api.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/social/gnunet-social.c b/src/social/gnunet-social.c
index 0de8809ff..12c5bf2e1 100644
--- a/src/social/gnunet-social.c
+++ b/src/social/gnunet-social.c
@@ -281,7 +281,7 @@ exit_fail ()
281 * This also indicates the end of the connection to the service. 281 * This also indicates the end of the connection to the service.
282 */ 282 */
283static void 283static void
284host_left () 284host_left (void *cls)
285{ 285{
286 GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, 286 GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE,
287 "The host has left the place.\n"); 287 "The host has left the place.\n");
diff --git a/src/social/social_api.c b/src/social/social_api.c
index 96ddfe912..89843831b 100644
--- a/src/social/social_api.c
+++ b/src/social/social_api.c
@@ -2773,6 +2773,8 @@ GNUNET_SOCIAL_app_disconnect (struct GNUNET_SOCIAL_App *app,
2773 GNUNET_ContinuationCallback disconnect_cb, 2773 GNUNET_ContinuationCallback disconnect_cb,
2774 void *disconnect_cls) 2774 void *disconnect_cls)
2775{ 2775{
2776 if (NULL == app) return;
2777
2776 app->disconnect_cb = disconnect_cb; 2778 app->disconnect_cb = disconnect_cb;
2777 app->disconnect_cls = disconnect_cls; 2779 app->disconnect_cls = disconnect_cls;
2778 2780