Diff between 059a3471dc0f4d291a626743c8b746ed48770591 and 4f8d077fb56d4e018f718627b3d732dbadfaf313

Changed Files

File Additions Deletions Status
obexd/src/plugin.c +0 -8 modified

Full Patch

diff --git a/obexd/src/plugin.c b/obexd/src/plugin.c
index f3854b6..6280085 100644
--- a/obexd/src/plugin.c
+++ b/obexd/src/plugin.c
@@ -96,7 +96,6 @@ gboolean plugin_init(void)
 		struct obex_plugin_desc *desc;
 		void *handle;
 		gchar *filename;
-		struct stat st;
 
 		if (g_str_has_prefix(file, "lib") == TRUE ||
 				g_str_has_suffix(file, ".so") == FALSE)
@@ -104,13 +103,6 @@ gboolean plugin_init(void)
 
 		filename = g_build_filename(PLUGINDIR, file, NULL);
 
-		if (stat(filename, &st) < 0) {
-			error("Can't find plugin %s: %s", filename,
-							strerror(errno));
-			g_free(filename);
-			continue;
-		}
-
 		handle = dlopen(filename, PLUGINFLAG);
 		if (handle == NULL) {
 			error("Can't load plugin %s: %s", filename,