1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/deskutils/multisync/files/patch-src-syncengine.c
Pav Lucistnik 5163b75f46 - Fix loading of plugins
Obtained from:	Multisync authors via Sam Lawrance <boris@brooknet.com.au>
2004-10-11 22:36:43 +00:00

28 lines
1.0 KiB
C

--- src/syncengine.c.orig Mon Apr 12 14:23:21 2004
+++ src/syncengine.c Sat Sep 11 22:53:29 2004
@@ -1097,6 +1097,7 @@
for (n = 0; n < g_list_length(remotechanges); n++) {
changed_object *robj, *lobj;
char *luid, *uid;
+ sync_compare_result compare;
robj = g_list_nth_data(remotechanges, n);
lobj = g_list_nth_data(localchanges, t);
@@ -1135,7 +1136,7 @@
if (!uid) {*/
// None of the two objects has a UID connection
// If they are equal, just connect them
- sync_compare_result compare =
+ compare =
sync_compare_objects(robj->comp, lobj->comp, lobj->object_type);
if (compare == SYNC_COMPARE_EQUAL) {
sync_insert_idpair(lobj->uid, robj->uid,
@@ -1714,6 +1715,7 @@
plugin = g_malloc0(sizeof(sync_plugin));
g_assert(plugin);
plugin->plugin = mod;
+ dlerror(); /* Clear previous errors */
plugin->shortname = CALL_PLUGIN(plugin, "short_name", ());
ptr=dlerror();
if (ptr != 0) {