diff options
Diffstat (limited to 'src/contact.c')
-rw-r--r-- | src/contact.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contact.c b/src/contact.c index e87e87b..78045bb 100644 --- a/src/contact.c +++ b/src/contact.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 |
@@ -27,7 +27,7 @@ | |||
27 | void | 27 | void |
28 | contact_create_info(struct GNUNET_CHAT_Contact *contact) | 28 | contact_create_info(struct GNUNET_CHAT_Contact *contact) |
29 | { | 29 | { |
30 | if (GNUNET_CHAT_contact_get_user_pointer(contact)) | 30 | if ((!contact) || (GNUNET_CHAT_contact_get_user_pointer(contact))) |
31 | return; | 31 | return; |
32 | 32 | ||
33 | MESSENGER_ContactInfo* info = g_malloc(sizeof(MESSENGER_ContactInfo)); | 33 | MESSENGER_ContactInfo* info = g_malloc(sizeof(MESSENGER_ContactInfo)); |