diff options
author | James Booth <boothj5@gmail.com> | 2016-02-25 01:17:47 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-02-25 01:17:47 +0000 |
commit | c562702ab9e1c456c488030b0f294616749dc838 (patch) | |
tree | 17ac8f988101bae292c69c5d4a8c65b2bebb5ae9 /src/plugins | |
parent | 51c6cefafd5ad2f36a98c052059ed64e2a966d0e (diff) | |
download | profani-tty-c562702ab9e1c456c488030b0f294616749dc838.tar.gz |
Check for NULLs before testing plugin theme
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/themes.c | 2 |
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; |