From 9d5bcff31cfc511bfead51ee1a743300c520b243 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Tue, 21 Feb 2012 20:32:24 +0100 Subject: WaE: unreadVariable --- sal/osl/unx/module.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sal/osl/unx') 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) -- cgit