preproc: do_directive: Allocate 'Include' from zeroified-memory
commit55cc4d04235cb884a885682b5a52f367ec7d50c3
authorCyrill Gorcunov <gorcunov@gmail.com>
Wed, 10 Nov 2010 20:12:06 +0000 (10 23:12 +0300)
committerCyrill Gorcunov <gorcunov@gmail.com>
Wed, 10 Nov 2010 20:17:34 +0000 (10 23:17 +0300)
tree52c9cc9d168471ac60fe29f6b6c6bba04c181bad
parent5fa1b1f47a86512e4e238540342d294c83df2dfe
preproc: do_directive: Allocate 'Include' from zeroified-memory

If not all members of structure being allocated from
heap get initialized we better to use nasm_zalloc instead
of nasm_malloc.

For example inc gets allocated in do_directive being parially
initialized and we erroniously get mmac_depth set to some
crappy value leading to SIGSEV in result.

[ http://forum.nasm.us/index.php?topic=921.msg3257#msg3257 ]

nb: I've cleaned verror from tab/space mess while were at it

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
preproc.c