diff options
-rw-r--r-- | gmodule/ChangeLog | 6 | ||||
-rw-r--r-- | gmodule/gmodule.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gmodule/ChangeLog b/gmodule/ChangeLog index 298a07b01..dbeb5405e 100644 --- a/gmodule/ChangeLog +++ b/gmodule/ChangeLog @@ -1,3 +1,9 @@ +Sun Feb 17 18:15:22 2002 Owen Taylor <otaylor@redhat.com> + + * gmodule.c (g_module_open): Fix typo when checking + if file + module_suffix exists. (Miroslaw Dobrzanski-Neumann, + #71801) + 2001-11-24 Tor Lillqvist <tml@iki.fi> * Makefile.am: Remove rule for testgmodule.exp, too. diff --git a/gmodule/gmodule.c b/gmodule/gmodule.c index 25bf18aa3..977a61994 100644 --- a/gmodule/gmodule.c +++ b/gmodule/gmodule.c @@ -338,7 +338,7 @@ g_module_open (const gchar *file_name, if (!name) { name = g_strconcat (file_name, "." G_MODULE_SUFFIX, NULL); - if (!g_file_test (file_name, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) + if (!g_file_test (name, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) { g_free (name); name = NULL; |