summaryrefslogtreecommitdiff
path: root/sal/osl/unx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-02-21 20:32:24 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-02-21 20:57:05 +0100
commit9d5bcff31cfc511bfead51ee1a743300c520b243 (patch)
tree396c9513c83421ae1827908d8bd82cc798261323 /sal/osl/unx
parenta055963389661e252b4a39dd1d7e5f566bd954bb (diff)
WaE: unreadVariable
Diffstat (limited to 'sal/osl/unx')
-rw-r--r--sal/osl/unx/module.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/osl/unx/module.c b/sal/osl/unx/module.c
index b88080b31219..ea41a7e9b9b4 100644
--- a/sal/osl/unx/module.c
+++ b/sal/osl/unx/module.c
@@ -55,7 +55,6 @@ static sal_Bool getModulePathFromAddress(void * address, rtl_String ** path) {
/* Bah, we do want to use dladdr here also on iOS, I think? */
#if !defined(NO_DL_FUNCTIONS) || defined(IOS)
#if defined(AIX)
- int i;
int size = 4 * 1024;
char *buf, *filename=NULL;
struct ld_info *lp;
@@ -63,7 +62,7 @@ static sal_Bool getModulePathFromAddress(void * address, rtl_String ** path) {
if ((buf = malloc(size)) == NULL)
return result;
- while((i = loadquery(L_GETINFO, buf, size)) == -1 && errno == ENOMEM)
+ while(loadquery(L_GETINFO, buf, size) == -1 && errno == ENOMEM)
{
size += 4 * 1024;
if ((buf = malloc(size)) == NULL)