Don't compare pointer against '0', but NULL

main
Sylvain 2022-11-17 11:23:15 +01:00
parent ddad901c0d
commit cd0d5a5fc5
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 3 additions and 3 deletions

View File

@ -414,7 +414,7 @@ static void qsort_nonaligned(void *base, size_t nmemb, size_t size,
char *first,*last;
char *pivot=malloc(size);
size_t trunc=TRUNC_nonaligned*size;
assert(pivot);
assert(pivot != NULL);
first=(char*)base; last=first+(nmemb-1)*size;
@ -445,7 +445,7 @@ static void qsort_aligned(void *base, size_t nmemb, size_t size,
char *first,*last;
char *pivot=malloc(size);
size_t trunc=TRUNC_aligned*size;
assert(pivot);
assert(pivot != NULL);
first=(char*)base; last=first+(nmemb-1)*size;
@ -475,7 +475,7 @@ static void qsort_words(void *base, size_t nmemb,
int stacktop=0;
char *first,*last;
char *pivot=malloc(WORD_BYTES);
assert(pivot);
assert(pivot != NULL);
first=(char*)base; last=first+(nmemb-1)*WORD_BYTES;