#129 examples: Fix compilation for XML_UNICODE_WCHAR_T
#130 benchmark: Fix compilation for XML_UNICODE_WCHAR_T
#9 Address two Clang Static Analyzer false positives
+ #6 Resolve superfluous internal malloc/realloc switch
Special thanks to:
Benbuck Nason
char *temp = NULL;
const int bytesToAllocate = (int)((unsigned)len * 2U);
if (bytesToAllocate > 0) {
- temp = (buffer == NULL
- ? (char *)MALLOC(bytesToAllocate)
- : (char *)REALLOC(buffer, bytesToAllocate));
+ temp = (char *)REALLOC(buffer, bytesToAllocate);
}
if (temp == NULL) {
errorCode = XML_ERROR_NO_MEMORY;