diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-02-06 23:45:46 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-02-06 23:45:46 +0100 |
commit | 7b3e0918cfe9f24737f725a21ef577aff3a43dfb (patch) | |
tree | aa37bf86bdb8c47c257ca77e131fa93c3ada2555 /source/helper.c | |
parent | d3b050e1f1276c7f27392805b75ab91335ab2edd (diff) |
Reduce amount of paths created
Diffstat (limited to 'source/helper.c')
-rw-r--r-- | source/helper.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/helper.c b/source/helper.c index e71a5f3c..9abb6a35 100644 --- a/source/helper.c +++ b/source/helper.c @@ -251,7 +251,7 @@ GRegex **tokenize ( const char *input, int case_sensitive ) } char *saveptr = NULL, *token; - GRegex **retv = NULL; + GRegex **retv = NULL; if ( !config.tokenize ) { retv = g_malloc0 ( sizeof ( GRegex* ) * 2 ); retv[0] = (GRegex *) create_regex ( input, case_sensitive ); @@ -862,8 +862,8 @@ int rofi_scorer_fuzzy_evaluate ( const char *pattern, glong plen, const char *st // uleft: value of the upper left cell; ulefts: maximum value of uleft and cells on the left. The arbitrary initial // values suppress warnings. int uleft = 0, ulefts = 0, left, lefts; - const gchar *pit = pattern, *sit; - enum CharClass prev = NON_WORD, cur; + const gchar *pit = pattern, *sit; + enum CharClass prev = NON_WORD, cur; for ( si = 0, sit = str; si < slen; si++, sit = g_utf8_next_char ( sit ) ) { cur = rofi_scorer_get_character_class ( g_utf8_get_char ( sit ) ); score[si] = rofi_scorer_get_score_for ( prev, cur ); |