forked from enlightenment/efl
declare variables at the beginning of the block
SVN revision: 49254
This commit is contained in:
parent
247674b26c
commit
9c210617f7
|
@ -450,11 +450,11 @@ EAPI const char * eina_module_file_get(const Eina_Module *m)
|
|||
|
||||
EAPI char *eina_module_symbol_path_get(const void *symbol, const char *sub_dir)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(symbol, NULL);
|
||||
|
||||
#ifdef HAVE_DLADDR
|
||||
Dl_info eina_dl;
|
||||
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(symbol, NULL);
|
||||
|
||||
if (dladdr(symbol, &eina_dl))
|
||||
{
|
||||
if (strrchr(eina_dl.dli_fname, '/'))
|
||||
|
|
Loading…
Reference in New Issue