about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-28 00:04:37 +0000
committerJames Booth <boothj5@gmail.com>2015-01-28 00:04:37 +0000
commit9800a46adb3b6c622d242ce8fc5904030cf3c111 (patch)
tree00809926050de094f1a248007cf468833ba31ff7 /src
parentba89297382a40ea8f63f73d756dc1ad67a0b1aaa (diff)
downloadprofani-tty-9800a46adb3b6c622d242ce8fc5904030cf3c111.tar.gz
Fixed compile error when no OTR support
Diffstat (limited to 'src')
-rw-r--r--src/ui/core.c2
1 files changed, 1 insertions, 1 deletions
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;
         }