This is an automated email from the ASF dual-hosted git repository. tross pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
commit a8f08ba69be2d5e3f322be4e183d512e4f860d15 Author: Jiri Danek <jda...@redhat.com> AuthorDate: Mon Dec 21 15:25:08 2020 +0100 DISPATCH-1900 calling calloc with zero nmemb or zero size is permitted --- include/qpid/dispatch/ctools.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/qpid/dispatch/ctools.h b/include/qpid/dispatch/ctools.h index d2a11e6..d071ffc 100644 --- a/include/qpid/dispatch/ctools.h +++ b/include/qpid/dispatch/ctools.h @@ -236,7 +236,6 @@ static inline void *qd_malloc(size_t size) static inline void *qd_calloc(size_t nmemb, size_t size) { - assert(nmemb && size); void *ptr = calloc(nmemb, size); if (!ptr) { perror("qd_calloc"); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org