summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;