mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 06:13:29 +02:00
Merge branch 'gstring-min-size' into 'main'
GString: Bump minimum size See merge request GNOME/glib!2251
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user