Browse code

core: fix ksr_version_control() for FreeBSD build

drTr0jan authored on 12/07/2022 12:12:00
Showing 1 changed files
... ...
@@ -347,6 +347,9 @@ int ksr_version_control(void *handle, char *path)
347 347
 	char **m_flags;
348 348
 	char* error;
349 349
 
350
+#ifdef __FreeBSD__
351
+    (void) dlerror();
352
+#endif
350 353
 	m_ver=(char **)dlsym(handle, "module_version");
351 354
 	if ((error=(char *)dlerror())!=0) {
352 355
 		LM_ERR("no version info in module <%s>: %s\n", path, error);