diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-04-14 17:19:57 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-04-14 17:19:57 +0000 |
commit | 1f46755f75f9335284417f9ddb8468382c9a7843 (patch) | |
tree | 9657b7a9d1a3f7d89c6ee538c237d3326498936e /loader.c | |
parent | b433dc19171b1b4de503d9b59061eaa49ce8acf5 (diff) |
fix a mostly harmless error introduced by svn merge.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20036 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'loader.c')
-rw-r--r-- | loader.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -704,13 +704,11 @@ static struct module * __load_resource(const char *resource_name, /* open in a sane way */ cur->lib = dlopen(fn, RTLD_NOW | RTLD_LOCAL); - if (cur->lib) { - if ((m = find_symbol(cur, "mod_data", 0)) == NULL || - (m->flags & MOD_MASK) == MOD_0) { + if (cur->lib && + ((m = find_symbol(cur, "mod_data", 0)) == NULL || (m->flags & MOD_MASK) == MOD_0)) { /* old-style module, close and reload with standard flags */ - dlclose(cur->lib); - cur->lib = NULL; - } + dlclose(cur->lib); + cur->lib = NULL; m = NULL; } if (cur->lib == NULL) /* try reopen with the old style */ |