1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Make sure result is always set for otr_get_policy()

This commit is contained in:
Michael Vetter 2019-07-23 08:03:39 +02:00
parent 41bf7f4b22
commit bb08c7270d

View File

@ -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;
}