pike.git / src / dynamic_load.c

version» Context lines:

pike.git/src/dynamic_load.c:486:    ((struct module_load_error_struct *) (err_obj->storage + module_load_error_offset))       const char *err = dlerror();    if (err) {    if (err[strlen (err) - 1] == '\n')    push_string (make_shared_binary_string (err, strlen (err) - 1));    else    push_text (err);    }    else -  push_text ("Unknown reason"); +  push_static_text ("Unknown reason");       add_ref (LOADERR_STRUCT (err_obj)->path = Pike_sp[-args - 1].u.string);    add_ref (LOADERR_STRUCT (err_obj)->reason = Pike_sp[-1].u.string);       if (Pike_sp[-args].u.string->len < 1024) {    throw_error_object (err_obj, "load_module", Pike_sp - args - 1, args,    "load_module(\"%s\") failed: %s\n",    module_name->str, Pike_sp[-1].u.string->str);    } else {    throw_error_object (err_obj, "load_module", Pike_sp - args - 1, args,