Skip to content

Commit

Permalink
core: receive_msg() - init local variables for better runtime trouble…
Browse files Browse the repository at this point in the history
…shooting
  • Loading branch information
miconda committed Mar 26, 2020
1 parent 1d01ae5 commit 1611766
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/receive.c
Expand Up @@ -223,15 +223,15 @@ int ksr_evrt_received(char *buf, unsigned int len, receive_info_t *rcv_info)
*/
int receive_msg(char *buf, unsigned int len, receive_info_t *rcv_info)
{
struct sip_msg *msg;
struct sip_msg *msg = NULL;
struct run_act_ctx ctx;
struct run_act_ctx *bctx;
int ret;
struct run_act_ctx *bctx = NULL;
int ret = -1;
struct timeval tvb, tve;
struct timezone tz;
unsigned int diff = 0;
str inb;
sr_net_info_t netinfo;
str inb = STR_NULL;
sr_net_info_t netinfo = {0};
sr_kemi_eng_t *keng = NULL;
sr_event_param_t evp = {0};
unsigned int cidlockidx = 0;
Expand Down

0 comments on commit 1611766

Please sign in to comment.