summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/helper.c3
-rw-r--r--source/view.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/source/helper.c b/source/helper.c
index 8c3d9cb7..0437519f 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -184,7 +184,8 @@ static gchar *fuzzy_to_regex ( const char * input )
if ( *iter == '\\' ){
g_string_append_c ( str, '\\');
iter = g_utf8_next_char ( iter );
- if ( iter == NULL ) break;
+ // If EOL, break out of for loop.
+ if ( (*iter) == '\0' ) break;
}
g_string_append_unichar ( str, g_utf8_get_char ( iter ) );
g_string_append ( str, ")" );
diff --git a/source/view.c b/source/view.c
index fca571b3..ab88e13f 100644
--- a/source/view.c
+++ b/source/view.c
@@ -1595,7 +1595,7 @@ void rofi_view_cleanup ()
}
if ( CacheState.repaint_source > 0 ) {
g_source_remove ( CacheState.repaint_source );
- CacheState.idle_timeout = 0;
+ CacheState.repaint_source = 0;
}
if ( CacheState.fake_bg ) {
cairo_surface_destroy ( CacheState.fake_bg );