diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index b5a862b9a..975be0bb7 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -1293,6 +1293,8 @@ g_strerror (gint errnum) if (error) g_print ("%s\n", error->message); } + else if (msg == (const gchar *)buf) + msg = g_strdup (buf); g_hash_table_insert (errors, GINT_TO_POINTER (errnum), (char *) msg); }