From ed98898bb501d02e69093d34961bf1fb46d2ed4d Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 3 Jul 2006 15:19:31 +0000 Subject: Change all pj_memset to pj_bzero(), where applicable git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@582 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/string.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pjlib/include/pj/string.h') diff --git a/pjlib/include/pj/string.h b/pjlib/include/pj/string.h index 7c513e7c..4466567e 100644 --- a/pjlib/include/pj/string.h +++ b/pjlib/include/pj/string.h @@ -552,7 +552,11 @@ PJ_DECL(int) pj_utoa_pad( unsigned long val, char *buf, int min_dig, int pad); */ PJ_INLINE(void) pj_bzero(void *dst, pj_size_t size) { +#if defined(PJ_HAS_BZERO) && PJ_HAS_BZERO!=0 bzero(dst, size); +#else + memset(dst, 0, size); +#endif } -- cgit v1.2.3