summaryrefslogtreecommitdiffstats
path: root/source/theme.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-06-20 18:10:18 +0200
committerDave Davenport <qball@gmpclient.org>2017-06-20 18:10:18 +0200
commitda008484168b56b92646e7b5ddd676a1d17680d2 (patch)
tree65f53f602acad1faf6c53277536736191df6c576 /source/theme.c
parent8375fbb5136c4aca009afa005d129ba580bf2cdc (diff)
Do better error reporting on configuration entries in rasi format.
Diffstat (limited to 'source/theme.c')
-rw-r--r--source/theme.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/theme.c b/source/theme.c
index cdfca812..25cbd4ee 100644
--- a/source/theme.c
+++ b/source/theme.c
@@ -786,15 +786,15 @@ char * rofi_theme_parse_prepare_file ( const char *file, const char *parent_file
{
char *filename = rofi_expand_path ( file );
// If no absolute path specified, expand it.
- if ( parent_file != NULL && ! g_path_is_absolute ( filename ) ) {
+ if ( parent_file != NULL && !g_path_is_absolute ( filename ) ) {
char *basedir = g_path_get_dirname ( parent_file );
- char *path = g_build_filename ( basedir, filename, NULL );
- g_free ( filename);
+ char *path = g_build_filename ( basedir, filename, NULL );
+ g_free ( filename );
filename = path;
g_free ( basedir );
}
GFile *gf = g_file_new_for_path ( filename );
- g_free(filename);
+ g_free ( filename );
filename = g_file_get_path ( gf );
g_object_unref ( gf );