summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-02-17 23:17:52 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-02-17 23:17:52 +0000
commit92e45a40097cadfbc0c4d9a3df1af6439745d9a2 (patch)
tree830acf994a80bb4cb29330d9f8614eab9e8a0e1f /gmodule
parent22fe431b0a0006a89a52a50b11002b807c464af9 (diff)
Fix typo when checking if file + module_suffix exists. (Miroslaw
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)
Diffstat (limited to 'gmodule')
-rw-r--r--gmodule/ChangeLog6
-rw-r--r--gmodule/gmodule.c2
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;