output/outbin.c: initialize section align/start attributes upon creation
authorKeith Kanios <keith@kanios.net>
Sun, 27 Feb 2011 19:14:32 +0000 (13:14 -0600)
committerCyrill Gorcunov <gorcunov@gmail.com>
Mon, 28 Feb 2011 06:49:04 +0000 (09:49 +0300)
output/outbin.c

index 4012cc9c7e65a073bf05ed8be4e8fbd37fe141d7..97a29a8917d3e6bfc59b2f21e8149fd009785374 100644 (file)
@@ -214,6 +214,10 @@ static struct Section *create_section(char *name)
     last_section->follows = last_section->vfollows = 0;
     last_section->length = 0;
     last_section->flags = 0;
+    last_section->align = 0;
+    last_section->valign = 0;
+    last_section->start = 0;
+    last_section->vstart = 0;
     last_section->next = NULL;
 
     /* Register our sections with NASM. */