[sr-dev] git:master:522c338a: Merge pull request #1664 from mslehto/Wsometimes_uninitialized

GitHub noreply at github.com
Wed Oct 3 09:16:21 CEST 2018


Module: kamailio
Branch: master
Commit: 522c338abff05634b6eff2a50e2827abf748902c
URL: https://github.com/kamailio/kamailio/commit/522c338abff05634b6eff2a50e2827abf748902c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2018-10-03T09:16:15+02:00

Merge pull request #1664 from mslehto/Wsometimes_uninitialized

sipcapture: initialize variable

---

Modified: src/modules/sipcapture/sipcapture.c

---

Diff:  https://github.com/kamailio/kamailio/commit/522c338abff05634b6eff2a50e2827abf748902c.diff
Patch: https://github.com/kamailio/kamailio/commit/522c338abff05634b6eff2a50e2827abf748902c.patch

---

diff --git a/src/modules/sipcapture/sipcapture.c b/src/modules/sipcapture/sipcapture.c
index bb3332b26f..327e4e110f 100644
--- a/src/modules/sipcapture/sipcapture.c
+++ b/src/modules/sipcapture/sipcapture.c
@@ -2499,7 +2499,8 @@ int receive_logging_json_msg(char *buf, unsigned int len,
 	struct timezone tz;
 	time_t epoch_time_as_time_t;
 
-	str tmp, corrtmp, table;
+	str tmp, table;
+	str corrtmp = STR_NULL;
 	_capture_mode_data_t *c = NULL;
 
 	c = capture_def;




More information about the sr-dev mailing list