aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-03 10:23:35 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-03 10:23:35 +0200
commit1eba7de0c2469de52b2941efcc2eabb04f54e55b (patch)
treec87fcb40799f8c8961ce38a7137be58d8200189d /openbsc/src/libmgcp
parentd5c270e71cd1d133bb29b75e0825dca700bebd9e (diff)
mgcp: Make sure the save pointer is initialized with NULL.
Coverity is not happy about it but it doesn't appear to be a real issue as the data will not be NULL on the first call. Addresses: Coverity CID 1040704
Diffstat (limited to 'openbsc/src/libmgcp')
-rw-r--r--openbsc/src/libmgcp/mgcp_protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libmgcp/mgcp_protocol.c b/openbsc/src/libmgcp/mgcp_protocol.c
index d38bbf3c6..8f6861d92 100644
--- a/openbsc/src/libmgcp/mgcp_protocol.c
+++ b/openbsc/src/libmgcp/mgcp_protocol.c
@@ -337,7 +337,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";