mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Use null check convention in otrlibv4.c
This commit is contained in:
parent
2426a7fcfc
commit
fa2e33e11d
@ -253,7 +253,7 @@ otrlib_end_session(OtrlUserState user_state, const char * const recipient, char
|
||||
ConnContext *context = otrl_context_find(user_state, recipient, jid, "xmpp",
|
||||
OTRL_INSTAG_MASTER, 0, NULL, NULL, NULL);
|
||||
|
||||
if (context != NULL) {
|
||||
if (context) {
|
||||
otrl_message_disconnect(user_state, ops, NULL, jid, "xmpp", recipient, 0);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user