소스 검색

lrkproxy: init value for compiler warning

Daniel-Constantin Mierla 3 년 전
부모
커밋
9fd0cae960
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/modules/lrkproxy/lrkproxy.c

+ 1 - 1
src/modules/lrkproxy/lrkproxy.c

@@ -1284,7 +1284,7 @@ static int change_media_sdp(sip_msg_t *msg, struct lrkproxy_hash_entry *e, const
         e->snat_ipv4.len = strlen(e->snat_ipv4.s);
 
         str current_port;
-        unsigned int snat_port;
+        unsigned int snat_port = 0;
 
         str2int(&e->dst_port, &snat_port);