Portably pass a full pointer and not just an integer to terminate vararg pointer...
authorJay Krell <jaykrell@microsoft.com>
Wed, 28 Aug 2019 17:35:10 +0000 (10:35 -0700)
committerRyan Lucia <rylucia@microsoft.com>
Wed, 28 Aug 2019 17:35:10 +0000 (13:35 -0400)
commitf871e6e4249730cc24cea82cdf2b328aa8cd7ef5
tree105e59ab4d1bb2dd8234f1bfd2945ac7975fe9c6
parent6ae8d85a0682b42b7c68c987ab4a62e3654e599d
Portably pass a full pointer and not just an integer to terminate vararg pointer lists. (mono/mono#15629)

i.e. because of define NULL 0.
Though I think at least Visual C++ special cases this and passes a full pointer to varargs.

Commit migrated from https://github.com/mono/mono/commit/ff73c84482f99036f04c883316246d43d17f44d4
24 files changed:
src/mono/mono/dis/dump.c
src/mono/mono/dis/get.c
src/mono/mono/dis/main.c
src/mono/mono/eglib/gfile-posix.c
src/mono/mono/eglib/gpath.c
src/mono/mono/eglib/test/file.c
src/mono/mono/eglib/test/path.c
src/mono/mono/eglib/test/string-util.c
src/mono/mono/metadata/appdomain.c
src/mono/mono/metadata/assembly.c
src/mono/mono/metadata/domain.c
src/mono/mono/metadata/icall.c
src/mono/mono/metadata/image.c
src/mono/mono/metadata/loader.c
src/mono/mono/metadata/mono-config.c
src/mono/mono/metadata/object.c
src/mono/mono/metadata/w32file-unix.c
src/mono/mono/metadata/w32process-unix.c
src/mono/mono/mini/aot-compiler.c
src/mono/mono/mini/aot-runtime.c
src/mono/mono/mini/main-core.c
src/mono/mono/mini/main.c
src/mono/mono/utils/mono-dl.c
src/mono/mono/utils/mono-path.c