Do not g_strdup, as promised in the function name.
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Tue, 29 May 2001 13:48:18 +0000 (13:48 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Tue, 29 May 2001 13:48:18 +0000 (13:48 +0000)
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.

gmodule/ChangeLog
gmodule/gmodule.c

index cab25ea..7eac3f2 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 Tue May 29 12:57:51 2001  Tim Janik  <timj@gtk.org>
 
        * gmodule.c (g_module_symbol): erk, strconcat needs NULL as last arg.
index 7f7cf28..72ee96e 100644 (file)
@@ -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;
 }