changeset 2217:c9640971beec

Fix bug/typo introduced in 0c78d31c753d (Reported by franky)
author Mikael Berthe <mikael@lilotux.net>
date Thu, 05 Nov 2015 23:11:43 +0100
parents fa516ef22145
children b56be18d5a04
files mcabber/mcabber/otr.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)