]> git.sur5r.net Git - cc65/commitdiff
Fixed an error: Some of the collections weren't initialized.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 31 Jul 2010 09:44:25 +0000 (09:44 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 31 Jul 2010 09:44:25 +0000 (09:44 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4775 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ld65/objdata.c

index ade6192a7e54c1d24e5b9f9aabad95bdb4bbdc42..89f8f8cd5130e4058d36bbe0e0b5ca53efb8bf4a 100644 (file)
@@ -76,8 +76,12 @@ ObjData* NewObjData (void)
     O->Name            = INVALID_STRING_ID;
     O->LibName         = INVALID_STRING_ID;
     O->MTime            = 0;
-    O->Flags                   = 0;
     O->Start           = 0;
+    O->Flags                   = 0;
+    O->FileCount        = 0;
+    O->Files            = EmptyCollection;
+    O->SectionCount     = 0;
+    O->Sections         = EmptyCollection;                
     O->ExportCount     = 0;
     O->Exports         = EmptyCollection;
     O->ImportCount     = 0;