From 421c67e28404c4f4e720de4dceaa1825e75ef865 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 14 Feb 2020 11:23:19 +0100 Subject: Add workaround for compiler warning Regards https://github.com/profanity-im/profanity/issues/1265 --- src/ui/occupantswin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/occupantswin.c b/src/ui/occupantswin.c index 70314c2b..aff680ea 100644 --- a/src/ui/occupantswin.c +++ b/src/ui/occupantswin.c @@ -44,7 +44,7 @@ static void _occuptantswin_occupant(ProfLayoutSplit *layout, Occupant *occupant, gboolean showjid) { - int colour; + int colour = 0; //init to workaround compiler warning theme_item_t presence_colour = THEME_ROSTER_ONLINE; //init to workaround compiler warning if (prefs_get_boolean(PREF_OCCUPANTS_COLOR_NICK)) { -- cgit 1.4.1-2-gfad0