diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-07-23 08:03:39 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-07-23 08:03:39 +0200 |
commit | bb08c7270d525b47172445feefdc3ed33eb93cd6 (patch) | |
tree | 49e84808ce7cbe72164b5807a25c86f5d1c045ba /src/otr | |
parent | 41bf7f4b228aa5579acded7d62243b242a4df8a6 (diff) | |
download | profani-tty-bb08c7270d525b47172445feefdc3ed33eb93cd6.tar.gz |
Make sure result is always set for otr_get_policy()
Diffstat (limited to 'src/otr')
-rw-r--r-- | src/otr/otr.c | 2 |
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; } |