about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2020-02-05 15:29:17 +0100
committerPaul Fariello <paul@fariello.eu>2020-02-05 15:29:17 +0100
commitbe7157065cb3be92a75f4c7929e39d65dfdc6208 (patch)
treedf3c396a1c28f173d349f87640fd69894ae33ef4 /src
parent7f956aa4f5d81af09ab5bda230438324160e8385 (diff)
downloadprofani-tty-be7157065cb3be92a75f4c7929e39d65dfdc6208.tar.gz
Add default pref for PREF_COLOR_NICK
Fix a segfault if corresponding preference is not saved in config file.
Diffstat (limited to 'src')
-rw-r--r--src/config/preferences.c2
1 files changed, 2 insertions, 0 deletions
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;
     }