diff --git a/lib/search/glob.c b/lib/search/glob.c index d1a81b573..18f888313 100644 --- a/lib/search/glob.c +++ b/lib/search/glob.c @@ -123,7 +123,7 @@ mc_search__glob_translate_to_regex (gchar * str, gsize * len) static GString * mc_search__translate_replace_glob_to_regex (gchar * str) { - GString *buff = g_string_new (""); + GString *buff = g_string_sized_new (32); int cnt = '0'; gboolean escaped_mode = FALSE; while (*str)