diff options
Diffstat (limited to 'src/module.c')
-rw-r--r-- | src/module.c | 4 |
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,5 +1,5 @@ /* 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 @@ -111,7 +111,7 @@ modload(struct module *mod, lt_dladvise advise) 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; |