mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +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);
|
len = vasprintf (string, format, args);
|
||||||
if (len < 0)
|
if (len < 0)
|
||||||
*string = NULL;
|
*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
|
#else
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user