Module: kamailio
Branch: master
Commit: cfb50124e67b68552520e418a20ad2dfec96117b
URL:
https://github.com/kamailio/kamailio/commit/cfb50124e67b68552520e418a20ad2d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-04-28T13:04:37+02:00
xcap_client: init structure
---
Modified: src/modules/xcap_client/xcap_client.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cfb50124e67b68552520e418a20ad2d…
Patch:
https://github.com/kamailio/kamailio/commit/cfb50124e67b68552520e418a20ad2d…
---
diff --git a/src/modules/xcap_client/xcap_client.c
b/src/modules/xcap_client/xcap_client.c
index 607628dbb4..efd434c2ab 100644
--- a/src/modules/xcap_client/xcap_client.c
+++ b/src/modules/xcap_client/xcap_client.c
@@ -309,6 +309,7 @@ int parse_doc_url(str doc_url, char** serv_addr, xcap_doc_sel_t*
doc_sel)
{
char* sl, *str_type;
+ memset(doc_sel, 0, sizeof(xcap_doc_sel_t));
sl= strchr(doc_url.s, '/');
if(sl==NULL) {
return -1;