From bee900b43985446ad579a2642a68ae2461dd2964 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 21 Jan 2010 17:27:32 +0000 Subject: Misc (#1026): initialize display field of SIP name address to NULL, as some libc library (mingw with gcc4, msvcrt) has some problem with sprintf with zero length and invalid pointer (thanks Klaus Darilion for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3070 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsip/sip_uri.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pjsip/src/pjsip/sip_uri.c b/pjsip/src/pjsip/sip_uri.c index e4d1b241..d87067a6 100644 --- a/pjsip/src/pjsip/sip_uri.c +++ b/pjsip/src/pjsip/sip_uri.c @@ -398,8 +398,8 @@ static pj_status_t pjsip_url_compare( pjsip_uri_context_e context, * in comparing SIP and SIPS URIs. */ - /* Characters other than those in the “reserved” set (see RFC 2396 [5]) - * are equivalent to their “encoding. + /* Characters other than those in the reserved set (see RFC 2396 [5]) + * are equivalent to their encoding. */ /* An IP address that is the result of a DNS lookup of a host name @@ -532,6 +532,7 @@ PJ_DEF(void) pjsip_name_addr_init(pjsip_name_addr *name) name->vptr = &name_addr_vptr; name->uri = NULL; name->display.slen = 0; + name->display.ptr = NULL; } PJ_DEF(pjsip_name_addr*) pjsip_name_addr_create(pj_pool_t *pool) -- cgit v1.2.3