mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-27 12:42:10 +01:00
Merge branch 'fix-inline-warnings' into 'main'
gstring: Avoid warnings from inline functions See merge request GNOME/glib!3249
This commit is contained in:
commit
b3b459107a
@ -187,7 +187,8 @@ static inline GString*
|
||||
g_string_append_c_inline (GString *gstring,
|
||||
gchar c)
|
||||
{
|
||||
if (G_LIKELY (gstring->len + 1 < gstring->allocated_len))
|
||||
if (G_LIKELY (gstring != NULL &&
|
||||
gstring->len + 1 < gstring->allocated_len))
|
||||
{
|
||||
gstring->str[gstring->len++] = c;
|
||||
gstring->str[gstring->len] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user