Change nasm_zero() to pass an object, not a pointer
commite886c0e9683884b51740d0b3aa3a11f023fdbe04
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 31 Mar 2017 21:56:17 +0000 (31 14:56 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 31 Mar 2017 21:56:17 +0000 (31 14:56 -0700)
tree0127be30d4e1b087fdb5c5f6ceb95dd02ffc8108
parent1980abfb7a1f26bf73a796bafa514190bc370a59
Change nasm_zero() to pass an object, not a pointer

Passing an object to nasm_zero() allows us to use it on arrays.
Otherwise the array will decay to a pointer and silently clear only
the first member of the array!

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
asm/assemble.c
asm/pragma.c
include/nasmlib.h