mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 19:36:18 +01:00
glib: remove deprecated g_mem_is_system_malloc() check in gprintf.c
This commit is contained in:
parent
ebaa1de304
commit
a366053253
@ -316,13 +316,6 @@ g_vasprintf (gchar **string,
|
||||
len = vasprintf (string, format, args);
|
||||
if (len < 0)
|
||||
*string = NULL;
|
||||
else if (!g_mem_is_system_malloc ())
|
||||
{
|
||||
/* vasprintf returns malloc-allocated memory */
|
||||
gchar *string1 = g_strndup (*string, len);
|
||||
free (*string);
|
||||
*string = string1;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user