Changeset 3070


Ignore:
Timestamp:
Jan 21, 2010 5:27:32 PM (15 years ago)
Author:
bennylp
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_uri.c

    r2394 r3070  
    399399     */ 
    400400 
    401     /* Characters other than those in the “reserved” set (see RFC 2396 [5]) 
    402      * are equivalent to their “encoding. 
     401    /* Characters other than those in the reserved set (see RFC 2396 [5]) 
     402     * are equivalent to their encoding. 
    403403     */ 
    404404 
     
    533533    name->uri = NULL; 
    534534    name->display.slen = 0; 
     535    name->display.ptr = NULL; 
    535536} 
    536537 
Note: See TracChangeset for help on using the changeset viewer.