mcabber/mcabber/otr.c
changeset 2217 c9640971beec
parent 2215 ba1a770dd632
child 2218 b56be18d5a04
--- a/mcabber/mcabber/otr.c	Thu Nov 05 20:58:57 2015 +0100
+++ b/mcabber/mcabber/otr.c	Thu Nov 05 23:11:43 2015 +0100
@@ -607,7 +607,7 @@
 
   *encryption_status = 0;
 
-  if (!msg || !buddy || !encryption_status)
+  if (!msg || !buddy || !*encryption_status)
     return NULL;
 
   if (ctx->msgstate == OTRL_MSGSTATE_PLAINTEXT)