From 9800a46adb3b6c622d242ce8fc5904030cf3c111 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 28 Jan 2015 00:04:37 +0000 Subject: [PATCH] Fixed compile error when no OTR support --- src/ui/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/core.c b/src/ui/core.c index 14ea2c17..85d5748a 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -1418,8 +1418,8 @@ ui_outgoing_chat_msg(const char * const from, const char * const barejid, // create new window if (window == NULL) { window = wins_new_chat(barejid); - ProfChatWin *chatwin = (ProfChatWin*)window; #ifdef HAVE_LIBOTR + ProfChatWin *chatwin = (ProfChatWin*)window; if (otr_is_secure(barejid)) { chatwin->is_otr = TRUE; }