about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-14 11:23:19 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-14 11:23:19 +0100
commit421c67e28404c4f4e720de4dceaa1825e75ef865 (patch)
treef499ba5df774fdd57b752f08b2fe2c1eb1cf4e5d /src
parent59e68f7b7a80e629c3f69ba9d7eafff8b4e5cddd (diff)
downloadprofani-tty-421c67e28404c4f4e720de4dceaa1825e75ef865.tar.gz
Add workaround for compiler warning
Regards https://github.com/profanity-im/profanity/issues/1265
Diffstat (limited to 'src')
-rw-r--r--src/ui/occupantswin.c2
1 files changed, 1 insertions, 1 deletions
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)) {