aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ltrace-elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ltrace-elf.c b/ltrace-elf.c
index 68a67f4..8dbc298 100644
--- a/ltrace-elf.c
+++ b/ltrace-elf.c
@@ -539,7 +539,7 @@ destroy_library_symbol(struct library_symbol * sym)
void
destroy_library_symbol_chain(struct library_symbol * sym)
{
- for (; sym != NULL; sym = sym->next) {
+ while (sym != NULL) {
struct library_symbol * next = sym->next;
destroy_library_symbol(sym);
sym = next;