diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-01-25 20:34:55 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-01-25 20:34:55 +0000 |
commit | a6c5b24b0cb5fe42f4109a92a5a6bdc7eb03cfad (patch) | |
tree | f299a776b8905b4c6d0e092239224b9a709539da /sal/android | |
parent | 25f78344e8dea95cedb0b981f08865d676154e5b (diff) |
WaE: unwind possible undefined warnings
Diffstat (limited to 'sal/android')
-rw-r--r-- | sal/android/lo-bootstrap.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sal/android/lo-bootstrap.c b/sal/android/lo-bootstrap.c index 3cb8d3a25300..55bc643f38ab 100644 --- a/sal/android/lo-bootstrap.c +++ b/sal/android/lo-bootstrap.c @@ -641,7 +641,8 @@ lo_dlneeds(const char *library) int i, fd; int n_needed; char **result; - char *shstrtab, *dynstr; + char *shstrtab; + char *dynstr = NULL; Elf32_Ehdr hdr; Elf32_Shdr shdr; Elf32_Dyn dyn; @@ -767,7 +768,8 @@ lo_dlneeds(const char *library) } close(fd); - free(dynstr); + if (dynstr) + free(dynstr); free(shstrtab); result[n_needed] = NULL; return result; @@ -1402,7 +1404,7 @@ extract_files(const char *prefix) apkentry = lo_apkentry(filename, &size); if (apkentry == NULL) { - LOGE("extract_files: Could not find %s in .apk", newfilename); + LOGE("extract_files: Could not find %s in .apk", filename); free(filename); continue; } |