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_contact.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gnunet_chat_contact.c') diff --git a/src/gnunet_chat_contact.c b/src/gnunet_chat_contact.c index 273f917..1f88cad 100644 --- a/src/gnunet_chat_contact.c +++ b/src/gnunet_chat_contact.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 @@ -60,7 +60,7 @@ contact_update_key (struct GNUNET_CHAT_Contact *contact) contact->public_key = NULL; - if (!contact->member) + if (!(contact->member)) return; const struct GNUNET_IDENTITY_PublicKey *pubkey; -- cgit v1.2.3