From 87ead322b24027dae30b603db86c71d7d819dda3 Mon Sep 17 00:00:00 2001 From: TheJackiMonster Date: Sun, 9 Jan 2022 23:15:09 +0100 Subject: Adjusted equations to avoid segfaults Signed-off-by: TheJackiMonster --- src/gnunet_chat_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gnunet_chat_context.c') diff --git a/src/gnunet_chat_context.c b/src/gnunet_chat_context.c index 929e6ac..d023f10 100644 --- a/src/gnunet_chat_context.c +++ b/src/gnunet_chat_context.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2021 GNUnet e.V. + Copyright (C) 2021--2022 GNUnet e.V. GNUnet is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published @@ -151,7 +151,7 @@ context_update_nick (struct GNUNET_CHAT_Context *context, util_set_name_field(nick, &(context->nick)); - if (!context->handle) + if (!(context->handle)) return; handle_send_internal_message( -- cgit v1.2.3