about summary refs log tree commit diff stats
path: root/src/plugins
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-02-25 01:17:47 +0000
committerJames Booth <boothj5@gmail.com>2016-02-25 01:17:47 +0000
commitc562702ab9e1c456c488030b0f294616749dc838 (patch)
tree17ac8f988101bae292c69c5d4a8c65b2bebb5ae9 /src/plugins
parent51c6cefafd5ad2f36a98c052059ed64e2a966d0e (diff)
downloadprofani-tty-c562702ab9e1c456c488030b0f294616749dc838.tar.gz
Check for NULLs before testing plugin theme
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/themes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/themes.c b/src/plugins/themes.c
index 5a50d4e6..42e7b7a1 100644
--- a/src/plugins/themes.c
+++ b/src/plugins/themes.c
@@ -74,7 +74,7 @@ plugin_themes_close(void)
 theme_item_t
 plugin_themes_get(const char *const group, const char *const key, const char *const def)
 {
-    if (g_key_file_has_key(themes, group, key, NULL)) {
+    if (group && key && def && g_key_file_has_key(themes, group, key, NULL)) {
         gchar *result = g_key_file_get_string(themes, group, key, NULL);
 
         theme_item_t ret;