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:
parent
41bf7f4b22
commit
bb08c7270d
@ -692,7 +692,7 @@ otr_get_policy(const char *const recipient)
|
|||||||
|
|
||||||
// check default account setting
|
// check default account setting
|
||||||
if (account->otr_policy) {
|
if (account->otr_policy) {
|
||||||
prof_otrpolicy_t result;
|
prof_otrpolicy_t result = PROF_OTRPOLICY_MANUAL;
|
||||||
if (g_strcmp0(account->otr_policy, "manual") == 0) {
|
if (g_strcmp0(account->otr_policy, "manual") == 0) {
|
||||||
result = PROF_OTRPOLICY_MANUAL;
|
result = PROF_OTRPOLICY_MANUAL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user