summaryrefslogtreecommitdiff
path: root/glib/gstrfuncs.h
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2018-08-22 11:09:01 +0100
committerPhilip Withnall <withnall@endlessm.com>2018-08-22 11:18:02 +0100
commit082730fc3e10a05c7938c06a27c875efd32a729b (patch)
tree00e92cf58d4ab4f31aeea32853f90a5d3e8c3760 /glib/gstrfuncs.h
parentc879f50f8a60be17dfa2d2a2b0c48b15c2f62445 (diff)
downloadglib-082730fc3e10a05c7938c06a27c875efd32a729b.tar.gz
glib: Drop G_GNUC_MALLOC usage from various allocation functions
These are our most critically incorrect uses of G_GNUC_MALLOC. See the previous commit for details. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/1465
Diffstat (limited to 'glib/gstrfuncs.h')
-rw-r--r--glib/gstrfuncs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gstrfuncs.h b/glib/gstrfuncs.h
index d09de568c..b8790fc78 100644
--- a/glib/gstrfuncs.h
+++ b/glib/gstrfuncs.h
@@ -255,7 +255,7 @@ gchar* g_strescape (const gchar *source,
GLIB_AVAILABLE_IN_ALL
gpointer g_memdup (gconstpointer mem,
- guint byte_size) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(2);
+ guint byte_size) G_GNUC_ALLOC_SIZE(2);
/* NULL terminated string arrays.
* g_strsplit(), g_strsplit_set() split up string into max_tokens tokens