mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 15:46:17 +01:00
g_string_append_len() accept NULL with length == 0
This commit is contained in:
parent
066df8d867
commit
056326c1e9
@ -874,7 +874,7 @@ g_string_append_len (GString *string,
|
||||
gssize len)
|
||||
{
|
||||
g_return_val_if_fail (string != NULL, NULL);
|
||||
g_return_val_if_fail (val != NULL, string);
|
||||
g_return_val_if_fail (len == 0 || val != NULL, string);
|
||||
|
||||
return g_string_insert_len (string, -1, val, len);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user