From bb08c7270d525b47172445feefdc3ed33eb93cd6 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 23 Jul 2019 08:03:39 +0200 Subject: Make sure result is always set for otr_get_policy() --- src/otr/otr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/otr') 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; } -- cgit 1.4.1-2-gfad0 4567ba2358847014720278eb946d33e4f2179d'>this commit Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/linkify/build
blob: 3c96ad0062b3d2e643528b12a14b3e2f8c56ad91 (plain) (blame)
1
2
3
4