summaryrefslogtreecommitdiffstats
path: root/source/theme.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-09-07 20:03:21 +0200
committerDave Davenport <qball@gmpclient.org>2017-09-07 20:03:21 +0200
commit28ca3cb5108a73b47c05ffd46bf1da7bf0e966fe (patch)
treee276da6820c56a1ca95fe8d2a69fa0366c6dac31 /source/theme.c
parentacfc07a63e056bff1338a3430acc3ea93bd9ecc6 (diff)
Fix tests.
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];
}