summaryrefslogtreecommitdiffstats
path: root/source/theme.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-03-18 16:06:41 +0100
committerDave Davenport <qball@gmpclient.org>2017-03-18 16:06:41 +0100
commitc27921f99a793952c6f0c2d269de17689b687cb1 (patch)
treeace7b2fae190a142f7168c380ab1e800018f11fd /source/theme.c
parent8cdd4437d899a51ef03daeaf9793e2a866964bc1 (diff)
Small change to make cppcheck happy
Diffstat (limited to 'source/theme.c')
-rw-r--r--source/theme.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/theme.c b/source/theme.c
index 799ba8b2..a99d85f2 100644
--- a/source/theme.c
+++ b/source/theme.c
@@ -759,7 +759,6 @@ void rofi_theme_convert_old_theme ( void )
}
g_strfreev ( vals );
{
- Property *p = NULL;
ThemeWidget *widget = rofi_theme_find_or_create_name ( listview_widget, "element" );
ThemeWidget *scrollbar = rofi_theme_find_or_create_name ( listview_widget, "scrollbar" );
@@ -768,7 +767,7 @@ void rofi_theme_convert_old_theme ( void )
ThemeWidget *walternate = rofi_theme_find_or_create_name ( widget, "alternate" );
rofi_theme_convert_create_property_ht ( widget );
- p = rofi_theme_property_create ( P_INTEGER );
+ Property *p= rofi_theme_property_create ( P_INTEGER );
p->name = g_strdup ( "border" );
p->value.i = 0;
g_hash_table_replace ( widget->properties, p->name, p );