Updated the HDqsort() macro to ensure we don't pass NULL buffers to

qsort(3) in the future.
This commit is contained in:
Dana Robinson 2019-06-18 12:23:06 -07:00
parent d767e6a067
commit ea966597d5

View File

@ -1171,7 +1171,7 @@ typedef off_t h5_stat_size_t;
#define HDpwrite(F,B,C,O) pwrite(F,B,C,O)
#endif /* HDpwrite */
#ifndef HDqsort
#define HDqsort(M,N,Z,F) qsort(M,N,Z,F)
#define HDqsort(M,N,Z,F) do {HDassert(M); qsort(M,N,Z,F);} while(0)
#endif /* HDqsort*/
#ifndef HDraise
#define HDraise(N) raise(N)