aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_context.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-01-09 23:15:09 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-01-09 23:15:09 +0100
commit87ead322b24027dae30b603db86c71d7d819dda3 (patch)
tree95488910d566cdf5675aacbfe8ed554d4e69cb4e /src/gnunet_chat_context.c
parentc557eb484c38e205b251ffcbad14a17c38c2b6d4 (diff)
downloadlibgnunetchat-87ead322b24027dae30b603db86c71d7d819dda3.tar.gz
libgnunetchat-87ead322b24027dae30b603db86c71d7d819dda3.zip
Adjusted equations to avoid segfaults
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/gnunet_chat_context.c')
-rw-r--r--src/gnunet_chat_context.c4
1 files changed, 2 insertions, 2 deletions
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 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2021 GNUnet e.V. 3 Copyright (C) 2021--2022 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
@@ -151,7 +151,7 @@ context_update_nick (struct GNUNET_CHAT_Context *context,
151 151
152 util_set_name_field(nick, &(context->nick)); 152 util_set_name_field(nick, &(context->nick));
153 153
154 if (!context->handle) 154 if (!(context->handle))
155 return; 155 return;
156 156
157 handle_send_internal_message( 157 handle_send_internal_message(