aboutsummaryrefslogtreecommitdiff
path: root/src/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/module.c')
-rw-r--r--src/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/module.c b/src/module.c
index ca1d471..de00534 100644
--- a/src/module.c
+++ b/src/module.c
@@ -1,8 +1,8 @@
/* wydawca - automatic release submission daemon
- Copyright (C) 2007-2013 Sergey Poznyakoff
+ Copyright (C) 2007-2013, 2017 Sergey Poznyakoff
Wydawca is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
@@ -108,13 +108,13 @@ modload(struct module *mod, lt_dladvise advise)
return 0;
}
handle = lt_dlopenadvise(mod->path, advise);
if (!handle) {
- grecs_error(&mod->locus, 0,
+ grecs_error(mod->locus.beg.file ? &mod->locus : NULL, 0,
_("cannot load module %s: %s"), mod->path,
lt_dlerror());
return 1;
}
mod->handle = handle;
mod->open = resolve_sym(mod, "wy_open", 0);

Return to:

Send suggestions and report system problems to the System administrator.