about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2017-01-16 00:07:17 +0000
committerJames Booth <boothj5@gmail.com>2017-01-16 00:07:17 +0000
commit0d0578b625e2a37c8fdfab88542e5a58c22a776c (patch)
treeaa74bcac87b05245db5bfa32a1f3312c611d2b6b /src
parent2b7894ccff4c12003572af965b7f098669f0a7c3 (diff)
downloadprofani-tty-0d0578b625e2a37c8fdfab88542e5a58c22a776c.tar.gz
Fix compile
Diffstat (limited to 'src')
-rw-r--r--src/event/client_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/client_events.c b/src/event/client_events.c
index d2dc29c6..3ef193b1 100644
--- a/src/event/client_events.c
+++ b/src/event/client_events.c
@@ -99,12 +99,12 @@ void
 cl_ev_presence_send(const resource_presence_t presence_type, const int idle_secs)
 {
     char *signed_status = NULL;
-    char *msg = connection_get_presence_msg();
 
 #ifdef HAVE_LIBGPGME
     char *account_name = session_get_account_name();
     ProfAccount *account = accounts_get_account(account_name);
     if (account->pgp_keyid) {
+        char *msg = connection_get_presence_msg();
         signed_status = p_gpg_sign(msg, account->pgp_keyid);
     }
     account_free(account);