Module: kamailio
Branch: master
Commit: e2be8fe723ab98318816c18b59ffd086f7305040
URL:
https://github.com/kamailio/kamailio/commit/e2be8fe723ab98318816c18b59ffd08…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-04-06T19:31:11+02:00
tls: init local variables to avoid compile warnings
---
Modified: src/modules/tls/tls_select.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e2be8fe723ab98318816c18b59ffd08…
Patch:
https://github.com/kamailio/kamailio/commit/e2be8fe723ab98318816c18b59ffd08…
---
diff --git a/src/modules/tls/tls_select.c b/src/modules/tls/tls_select.c
index 2d17555fc6..d7bd9002ed 100644
--- a/src/modules/tls/tls_select.c
+++ b/src/modules/tls/tls_select.c
@@ -756,7 +756,7 @@ static int get_ssl_cert(str* res, int local, int urlencoded,
sip_msg_t* msg)
static int sel_ssl_cert(str* res, select_t* s, sip_msg_t* msg)
{
- int local, urlencoded;
+ int local=0, urlencoded=0;
switch(s->params[s->n - 2].v.i) {
case CERT_PEER: local = 0; break;