mgcp: Address compiler warning and initialize
mgcp/mgcp_protocol.c: In function ‘mgcp_handle_message’: /home/ich/install/openbsc/include/osmocom/core/logging.h:59:4: warning: ‘save’ may be used uninitialized in this function [-Wmaybe-uninitialized] logp2(ss, level, __BASE_FILE__, __LINE__, 0, fmt, ##args); \ ^ mgcp/mgcp_protocol.c:368:15: note: ‘save’ was declared here char *elem, *save; Change-Id: I28152373b043c8a5b55a83ac09dd7bafce4d2d66
This commit is contained in:
parent
e0b626adc0
commit
baaa66c445
|
@ -365,7 +365,7 @@ static struct mgcp_endpoint *find_endpoint(struct mgcp_config *cfg, const char *
|
|||
static int mgcp_analyze_header(struct mgcp_parse_data *pdata, char *data)
|
||||
{
|
||||
int i = 0;
|
||||
char *elem, *save;
|
||||
char *elem, *save = NULL;
|
||||
|
||||
pdata->trans = "000000";
|
||||
|
||||
|
|
Reference in New Issue