From 8c91b31ae6f35fb26eee327d0d47feac95959f8e Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Wed, 2 Oct 2019 14:22:27 +0200 Subject: [PATCH] Fix typo that led to segfault --- src/link/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link/output.c b/src/link/output.c index 6f99e66e..6c2e17d5 100644 --- a/src/link/output.c +++ b/src/link/output.c @@ -240,7 +240,7 @@ static void writeSymBank(struct SortedSections const *bankSections) minSectList = sectList.addr < zlSectList.addr ? §List : &zlSectList; - } else if (sectList.sect) { + } else if (sectList.sections) { sectList.sym = sectList.sect->symbols[sectList.i]; sectList.addr = sectList.sym->offset + sectList.sect->org;