Ignore:
Timestamp:
Aug 1, 2017 7:49:34 AM (7 years ago)
Author:
nanang
Message:

Misc (re #1994): Fixed compile warnings on MSVC 2005 & 2015.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/srv_resolver.c

    r5559 r5635  
    663663        pj_dns_addr_record rec; 
    664664 
     665        /* Avoid warning: potentially uninitialized local variable 'rec' */ 
     666        rec.alias.slen = 0; 
     667        rec.addr_count = 0; 
     668 
    665669        /* Clear outstanding job */ 
    666670        if (common->type == PJ_DNS_TYPE_A) { 
     
    692696                          status, 
    693697                          pj_strerror(status,errmsg,sizeof(errmsg)).ptr)); 
    694             } 
    695         } 
     698            } 
     699        } 
    696700 
    697701        /* Check that we really have answer */ 
Note: See TracChangeset for help on using the changeset viewer.