mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 09:28:54 +02:00
Do not g_strdup, as promised in the function name.
2001-05-29 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gmodule.c (g_module_set_error_unduped): Do not g_strdup, as promised in the function name.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
5ff90aee0d
commit
2fd34ae182
@@ -126,7 +126,7 @@ g_module_find_by_name (const gchar *name)
|
||||
static inline void
|
||||
g_module_set_error_unduped (const gchar *error)
|
||||
{
|
||||
g_static_private_set (&module_error_private, g_strdup (error), g_free);
|
||||
g_static_private_set (&module_error_private, error, g_free);
|
||||
errno = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user