[sr-dev] git:master:e2be8fe7: tls: init local variables to avoid compile warnings
Daniel-Constantin Mierla
miconda at gmail.com
Mon Apr 6 19:32:08 CEST 2020
Module: kamailio
Branch: master
Commit: e2be8fe723ab98318816c18b59ffd086f7305040
URL: https://github.com/kamailio/kamailio/commit/e2be8fe723ab98318816c18b59ffd086f7305040
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/e2be8fe723ab98318816c18b59ffd086f7305040.diff
Patch: https://github.com/kamailio/kamailio/commit/e2be8fe723ab98318816c18b59ffd086f7305040.patch
---
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;
More information about the sr-dev
mailing list