diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-04-06 19:55:47 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-04-06 19:55:47 +0200 |
commit | b227fece109606096065185ec14b029ffe5c153b (patch) | |
tree | a4bc546c64889f17c01d8d62b6576db72e88fefa /source/theme.c | |
parent | 898b5466f0ba83dbe098ca40bf0d3bdda47f5033 (diff) |
Fix some warning that converity scan picked up.
Diffstat (limited to 'source/theme.c')
-rw-r--r-- | source/theme.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/theme.c b/source/theme.c index 120221d3..67fb1943 100644 --- a/source/theme.c +++ b/source/theme.c @@ -238,7 +238,9 @@ static void rofi_theme_print_index ( ThemeWidget *widget ) } void rofi_theme_print ( ThemeWidget *widget ) { - rofi_theme_print_index ( widget ); + if ( widget != NULL ) { + rofi_theme_print_index ( widget ); + } } /** @@ -382,7 +384,7 @@ Property *rofi_theme_find_property ( ThemeWidget *widget, PropertyType type, con // Resolve link. rofi_theme_resolve_link_property ( p, 0 ); } - if ( p->value.link.ref->type == type ) { + if ( p->value.link.ref != NULL && p->value.link.ref->type == type ) { return p->value.link.ref; } } |