aboutsummaryrefslogtreecommitdiff
path: root/src/gnsrecord/gnsrecord.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnsrecord/gnsrecord.c')
-rw-r--r--src/gnsrecord/gnsrecord.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gnsrecord/gnsrecord.c b/src/gnsrecord/gnsrecord.c
index 8d5a6d95b..31749a629 100644
--- a/src/gnsrecord/gnsrecord.c
+++ b/src/gnsrecord/gnsrecord.c
@@ -102,15 +102,12 @@ init ()
102 if (1 == once) 102 if (1 == once)
103 return; 103 return;
104 once = 1; 104 once = 1;
105 const struct GNUNET_OS_ProjectData *pd = GNUNET_OS_project_data_get ();
106 const struct GNUNET_OS_ProjectData *dpd = GNUNET_OS_project_data_default ();
107 105
108 if (pd != dpd) 106 GNUNET_PLUGIN_load_all_in_context (GNUNET_OS_project_data_default (),
109 GNUNET_OS_init (dpd); 107 "libgnunet_plugin_gnsrecord_",
110 GNUNET_PLUGIN_load_all ("libgnunet_plugin_gnsrecord_", NULL, 108 NULL,
111 &add_plugin, NULL); 109 &add_plugin,
112 if (pd != dpd) 110 NULL);
113 GNUNET_OS_init (pd);
114} 111}
115 112
116 113