Re: [xml] [PATCH] DSO/Module Support

Joel Reed wrote:

+void* xmlModulePlatformSymbol(void* handle, const char* name)
+  void* sym;
+  sym = dlsym(handle, name);
+  return (sym);

While dlsym() returns NULL on error, it can also return NULL as a valid
address. The way you distinguish between these two conditions is to call
dlerror(). If dlerror() returns NULL, then the address is valid, otherwise it
is not.

This may be easily fixed, but you may also need to change the way that
xmlModulePlatformSymbol indicates an error to xmlModuleSymbol.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]