Merge branch 'gstring-min-size' into 'main'

GString: Bump minimum size

See merge request GNOME/glib!2251
This commit is contained in:
Philip Withnall 2021-09-20 09:08:47 +00:00
commit 97716e7b01

View File

@ -123,7 +123,7 @@ g_string_sized_new (gsize dfl_size)
string->len = 0;
string->str = NULL;
g_string_maybe_expand (string, MAX (dfl_size, 2));
g_string_maybe_expand (string, MAX (dfl_size, 64));
string->str[0] = 0;
return string;