mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 21:36:13 +01:00
Merge branch 'gstring-min-size' into 'main'
GString: Bump minimum size See merge request GNOME/glib!2251
This commit is contained in:
commit
97716e7b01
@ -123,7 +123,7 @@ g_string_sized_new (gsize dfl_size)
|
|||||||
string->len = 0;
|
string->len = 0;
|
||||||
string->str = NULL;
|
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;
|
string->str[0] = 0;
|
||||||
|
|
||||||
return string;
|
return string;
|
||||||
|
Loading…
Reference in New Issue
Block a user