diff options
author | Thomas Preud'homme | 2013-02-10 20:16:17 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-02-10 20:16:17 +0100 |
commit | 7cbf283090ec273c006a14129eee8bba1885da58 (patch) | |
tree | 2a865fb9254e84a81fa2d7c0a39f3f89a31a78e3 /test/tests/utf-8/S15cxu.vcf | |
parent | ea5c8334de82d6e9f0705e8a2c4a3ab0b29731ad (diff) | |
download | libvformat-7cbf283090ec273c006a14129eee8bba1885da58.tar.gz libvformat-7cbf283090ec273c006a14129eee8bba1885da58.tar.bz2 |
Cast NULL in void * in functions using va_arg
NULL isn't necessary a zero value. For instance, on AMD64 architecture,
a null pointer is 0x7fff00000000. Usually things works automagically as
the compiler always cast NULL and 0 in void * if stored in a pointer
variable. But with functions with variable number of arguments the
compiler can't know the type of the arguments and thus don't make the
cast. In consequences, NULL and 0 must be cast explicitely in void * if
the parameter is a pointer.
Diffstat (limited to 'test/tests/utf-8/S15cxu.vcf')
0 files changed, 0 insertions, 0 deletions