From a0db2cb021e45fe56f8b54121efa31bf071c8709 Mon Sep 17 00:00:00 2001 From: Mikko Lehto Date: Tue, 2 Oct 2018 16:08:06 +0300 Subject: [PATCH] sipcapture: initialize variable > sipcapture.c:2580:5: warning: variable 'corrtmp' is used uninitialized whenever 'if' condition is false > [-Wsometimes-uninitialized] > if(correlation_id) { > ^~~~~~~~~~~~~~ --- src/modules/sipcapture/sipcapture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/sipcapture/sipcapture.c b/src/modules/sipcapture/sipcapture.c index bb3332b26f3..327e4e110f2 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;