summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2020-05-06 21:56:40 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-05-08 15:30:30 -0400
commitea86360f21e8c9812acba8dc1bc2a54fef700ece (patch)
treed6dc17abd8eca21862ccce91ba55153540ead8f0
parentaa318338b753ab6e9db44cf2c2d285827eb35a03 (diff)
downloadhaskell-ea86360f21e8c9812acba8dc1bc2a54fef700ece.tar.gz
Linker.c: initialize n_symbols of ObjectCode with other fields
-rw-r--r--rts/Linker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/Linker.c b/rts/Linker.c
index 1437009aed..21abcc6e86 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -1326,6 +1326,7 @@ mkOc( pathchar *path, char *image, int imageSize,
setOcInitialStatus( oc );
oc->fileSize = imageSize;
+ oc->n_symbols = 0;
oc->symbols = NULL;
oc->n_sections = 0;
oc->sections = NULL;