mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
Updated the HDqsort() macro to ensure we don't pass NULL buffers to
qsort(3) in the future.
This commit is contained in:
parent
d767e6a067
commit
ea966597d5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user