declare variables at the beginning of the block

SVN revision: 49254
This commit is contained in:
Vincent Torri 2010-05-28 19:04:44 +00:00
parent 247674b26c
commit 9c210617f7
1 changed files with 2 additions and 2 deletions

View File

@ -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, '/'))