Module: kamailio
Branch: master
Commit: 7873a653a43070f891dc6cde5c188c81bf5de25d
URL:
https://github.com/kamailio/kamailio/commit/7873a653a43070f891dc6cde5c188c8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-26T09:59:44+01:00
cdp: init pointer to avoid warning on uninitialized use
---
Modified: src/modules/cdp/diameter_msg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7873a653a43070f891dc6cde5c188c8…
Patch:
https://github.com/kamailio/kamailio/commit/7873a653a43070f891dc6cde5c188c8…
---
diff --git a/src/modules/cdp/diameter_msg.c b/src/modules/cdp/diameter_msg.c
index fb4257f52a..464a3504e1 100644
--- a/src/modules/cdp/diameter_msg.c
+++ b/src/modules/cdp/diameter_msg.c
@@ -459,7 +459,7 @@ AAAMessage* AAATranslateMessage( unsigned char* source, unsigned int
sourceLen,
int attach_buf)
{
unsigned char *ptr;
- AAAMessage *msg;
+ AAAMessage *msg = 0;
unsigned char version;
unsigned int msg_len;
AAA_AVP *avp;