gmodule-dl.c: _g_module_symbol()



Just this annotation:

On linux 'man dlopen' says that the correct way to check if dlsym() was
successful is to do something like this

dlerror();
p=dlsym(...);
pc=dlerror();
if(pc)
  /* (error) */
else
  /* (ok) */


while in gmodule-dl.c it is used:


p=dlsym(...);
if(!p)
  /* (error) */
else
  /* (ok) */


Felix



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