Browse code

tls: init local variables to avoid compile warnings

Daniel-Constantin Mierla authored on 06/04/2020 17:31:11
Showing 1 changed files
... ...
@@ -756,7 +756,7 @@ static int get_ssl_cert(str* res, int local, int urlencoded, sip_msg_t* msg)
756 756
 
757 757
 static int sel_ssl_cert(str* res, select_t* s, sip_msg_t* msg)
758 758
 {
759
-	int local, urlencoded;
759
+	int local=0, urlencoded=0;
760 760
 
761 761
 	switch(s->params[s->n - 2].v.i) {
762 762
 	case CERT_PEER: local = 0; break;