mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Check for NULLs before testing plugin theme
This commit is contained in:
parent
51c6cefafd
commit
c562702ab9
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user