projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebaa1de
)
glib: remove deprecated g_mem_is_system_malloc() check in gprintf.c
author
Dan Winship
<danw@gnome.org>
Fri, 7 Aug 2015 13:46:49 +0000
(09:46 -0400)
committer
Dan Winship
<danw@gnome.org>
Fri, 7 Aug 2015 13:49:50 +0000
(09:49 -0400)
glib/gprintf.c
patch
|
blob
|
history
diff --git
a/glib/gprintf.c
b/glib/gprintf.c
index
cf4bf21
..
1c831b0
100644
(file)
--- a/
glib/gprintf.c
+++ b/
glib/gprintf.c
@@
-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