From be7157065cb3be92a75f4c7929e39d65dfdc6208 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Wed, 5 Feb 2020 15:29:17 +0100 Subject: [PATCH] Add default pref for PREF_COLOR_NICK Fix a segfault if corresponding preference is not saved in config file. --- src/config/preferences.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config/preferences.c b/src/config/preferences.c index bd13cfd1..456aab7d 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -2137,6 +2137,8 @@ _get_default_string(preference_t pref) return "redact"; case PREF_OMEMO_POLICY: return "automatic"; + case PREF_COLOR_NICK: + return "off"; default: return NULL; }