diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2021-09-20 09:08:47 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2021-09-20 09:08:47 +0000 |
commit | 97716e7b0153afd0d710b1b042492ecdbf581380 (patch) | |
tree | bf182ba0562146b572a6cc66fed72d3337248e39 | |
parent | 861afbe63953c2442658444bc147a7ea15213b8a (diff) | |
parent | 7fc7c57b6fd470bbee267471a61c714f3a0d281c (diff) | |
download | glib-97716e7b0153afd0d710b1b042492ecdbf581380.tar.gz |
Merge branch 'gstring-min-size' into 'main'
GString: Bump minimum size
See merge request GNOME/glib!2251
-rw-r--r-- | glib/gstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gstring.c b/glib/gstring.c index a400d4f24..17dc2c33d 100644 --- a/glib/gstring.c +++ b/glib/gstring.c @@ -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; |