summaryrefslogtreecommitdiffstats
path: root/source/theme.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/theme.c')
-rw-r--r--source/theme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/theme.c b/source/theme.c
index 10001c0f..fdcde039 100644
--- a/source/theme.c
+++ b/source/theme.c
@@ -377,7 +377,7 @@ void rofi_theme_widget_add_properties ( ThemeWidget *widget, GHashTable *table )
static inline ThemeWidget *rofi_theme_find_single ( ThemeWidget *widget, const char *name )
{
- for ( unsigned int j = 0; j < widget->num_widgets; j++ ) {
+ for ( unsigned int j = 0; widget && j < widget->num_widgets; j++ ) {
if ( g_strcmp0 ( widget->widgets[j]->name, name ) == 0 ) {
return widget->widgets[j];
}