From 92e45a40097cadfbc0c4d9a3df1af6439745d9a2 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sun, 17 Feb 2002 23:17:52 +0000 Subject: [PATCH] Fix typo when checking if file + module_suffix exists. (Miroslaw Sun Feb 17 18:15:22 2002 Owen Taylor * gmodule.c (g_module_open): Fix typo when checking if file + module_suffix exists. (Miroslaw Dobrzanski-Neumann, #71801) --- gmodule/ChangeLog | 6 ++++++ gmodule/gmodule.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gmodule/ChangeLog b/gmodule/ChangeLog index 298a07b..dbeb540 100644 --- a/gmodule/ChangeLog +++ b/gmodule/ChangeLog @@ -1,3 +1,9 @@ +Sun Feb 17 18:15:22 2002 Owen Taylor + + * gmodule.c (g_module_open): Fix typo when checking + if file + module_suffix exists. (Miroslaw Dobrzanski-Neumann, + #71801) + 2001-11-24 Tor Lillqvist * Makefile.am: Remove rule for testgmodule.exp, too. diff --git a/gmodule/gmodule.c b/gmodule/gmodule.c index 25bf18a..977a619 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; -- 2.7.4