From e14946ab9437f9bd233ca65a6c31757de43219e8 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Wed, 7 Nov 2012 16:45:48 +0100 Subject: [PATCH] Fixup for dl_iterate_phdr after bug 808121. r=me --- mozglue/linker/ElfLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozglue/linker/ElfLoader.cpp b/mozglue/linker/ElfLoader.cpp index 310d840082b..51fa2fa0637 100644 --- a/mozglue/linker/ElfLoader.cpp +++ b/mozglue/linker/ElfLoader.cpp @@ -96,7 +96,7 @@ __wrap_dladdr(void *addr, Dl_info *info) int __wrap_dl_iterate_phdr(dl_phdr_cb callback, void *data) { - if (ElfLoader::Singleton.dbg) + if (!ElfLoader::Singleton.dbg) return -1; for (ElfLoader::DebuggerHelper::iterator it = ElfLoader::Singleton.dbg.begin();