summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-01-21 17:27:32 +0000
committerBenny Prijono <bennylp@teluu.com>2010-01-21 17:27:32 +0000
commitbee900b43985446ad579a2642a68ae2461dd2964 (patch)
treeead9c29bf40d2d7f639218d280c01a8c16e4ee7e /pjsip
parent3ef2879ba92c2378df917d88069171e7b919c4ef (diff)
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
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/src/pjsip/sip_uri.c5
1 files 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)