about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-07-23 08:03:39 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-07-23 08:03:39 +0200
commitbb08c7270d525b47172445feefdc3ed33eb93cd6 (patch)
tree49e84808ce7cbe72164b5807a25c86f5d1c045ba /src
parent41bf7f4b228aa5579acded7d62243b242a4df8a6 (diff)
downloadprofani-tty-bb08c7270d525b47172445feefdc3ed33eb93cd6.tar.gz
Make sure result is always set for otr_get_policy()
Diffstat (limited to 'src')
-rw-r--r--src/otr/otr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index 32109cf2..90d2fbd8 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -692,7 +692,7 @@ otr_get_policy(const char *const recipient)
 
     // check default account setting
     if (account->otr_policy) {
-        prof_otrpolicy_t result;
+        prof_otrpolicy_t result = PROF_OTRPOLICY_MANUAL;
         if (g_strcmp0(account->otr_policy, "manual") == 0) {
             result = PROF_OTRPOLICY_MANUAL;
         }