[Freeswitch-svn] [commit] r12014 - freeswitch/trunk/src
FreeSWITCH SVN
mrene at freeswitch.org
Sat Feb 14 13:26:30 PST 2009
Author: mrene
Date: Sat Feb 14 15:26:30 2009
New Revision: 12014
Log:
MODLANG-99 Work around broken uClibc
Modified:
freeswitch/trunk/src/switch_dso.c
Modified: freeswitch/trunk/src/switch_dso.c
==============================================================================
--- freeswitch/trunk/src/switch_dso.c (original)
+++ freeswitch/trunk/src/switch_dso.c Sat Feb 14 15:26:30 2009
@@ -97,7 +97,13 @@
}
if (lib == NULL) {
- *err = strdup(dlerror());
+ const char *dlerr = dlerror();
+ /* Work around broken uclibc returning NULL on both dlopen() and dlerror() */
+ if (dlerr) {
+ *err = strdup(dlerr);
+ } else {
+ *err = strdup("Unknown error");
+ }
}
return lib;
}
More information about the Freeswitch-svn
mailing list