File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ int ospRequestRouting(
451
451
char cinfo [OSP_DEF_CINFONUM ][OSP_STRBUF_SIZE ];
452
452
char cinfostr [OSP_STRBUF_SIZE ];
453
453
unsigned int callidnumber = 1 ;
454
- OSPT_CALL_ID * callids [callidnumber ];
454
+ OSPT_CALL_ID * callids [callidnumber ] = { NULL } ;
455
455
unsigned int logsize = 0 ;
456
456
char * detaillog = NULL ;
457
457
char desthost [OSP_STRBUF_SIZE ];
@@ -471,7 +471,6 @@ int ospRequestRouting(
471
471
if ((errcode = OSPPTransactionNew (_osp_provider , & trans )) != OSPC_ERR_NO_ERROR ) {
472
472
LM_ERR ("failed to create new OSP transaction (%d)\n" , errcode );
473
473
} else if (ospGetCallId (msg , & (callids [0 ])) != 0 ) {
474
- callids [0 ] = NULL ;
475
474
LM_ERR ("failed to extract call id\n" );
476
475
} else if (ospGetFromUser (msg , inbound .calling , sizeof (inbound .calling )) != 0 ) {
477
476
LM_ERR ("failed to extract calling number\n" );
You can’t perform that action at this time.
0 commit comments