1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Merge branch 'master' into plugins-python

This commit is contained in:
James Booth 2016-02-25 01:18:48 +00:00
commit f507a6f541

View File

@ -74,7 +74,7 @@ plugin_themes_close(void)
theme_item_t theme_item_t
plugin_themes_get(const char *const group, const char *const key, const char *const def) 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); gchar *result = g_key_file_get_string(themes, group, key, NULL);
theme_item_t ret; theme_item_t ret;