Branch: Tag:

1997-03-23

1997-03-23 18:17:14 by Niels Möller <nisse@lysator.liu.se>

Check if dlerror() returns NULL (seems to happen when running purify).

Rev: src/dynamic_load.c:1.14

57:    module=dlopen(module_name, RTLD_NOW);    if(!module)    { +  char *err = dlerror(); +  if (err) +  err = "";    error("load_module(\"%s\") failed: %s\n", -  sp[-args].u.string->str, dlerror()); +  sp[-args].u.string->str, err);    }   #elif defined(USE_DLD)    dld_create_reference("pike_module_init");