about summary refs log tree commit diff stats
path: root/src/otr/otrlibv4.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-04 22:55:28 +0100
committerJames Booth <boothj5@gmail.com>2015-05-04 22:55:28 +0100
commitfa2e33e11d45e3df363da2c4ca3b2a6137f955df (patch)
tree2aec7bd75ad54ca13fd9b7acc3723fb68e9b7488 /src/otr/otrlibv4.c
parent2426a7fcfcfa2ee4e5ab0f9300e7d5296170f893 (diff)
downloadprofani-tty-fa2e33e11d45e3df363da2c4ca3b2a6137f955df.tar.gz
Use null check convention in otrlibv4.c
Diffstat (limited to 'src/otr/otrlibv4.c')
-rw-r--r--src/otr/otrlibv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/otr/otrlibv4.c b/src/otr/otrlibv4.c
index 713e51ab..fc1f5285 100644
--- a/src/otr/otrlibv4.c
+++ b/src/otr/otrlibv4.c
@@ -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);
     }
 }