reverse conditional in new module load code

This commit is contained in:
Ray Strode 2007-06-06 16:22:03 -04:00
parent e525478603
commit 5b416dbb9d

View file

@ -610,7 +610,7 @@ ply_module_look_up_function (ply_module_handle_t *handle,
dlerror ();
function = (ply_module_function_t) dlsym (handle, function_name);
if (dlerror () == NULL)
if (dlerror () != NULL)
{
if (errno == 0)
errno = ELIBACC;