diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-03 10:23:35 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-03 10:23:35 +0200 |
commit | 1eba7de0c2469de52b2941efcc2eabb04f54e55b (patch) | |
tree | c87fcb40799f8c8961ce38a7137be58d8200189d /openbsc/src/libmgcp/mgcp_protocol.c | |
parent | d5c270e71cd1d133bb29b75e0825dca700bebd9e (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/mgcp_protocol.c')
-rw-r--r-- | openbsc/src/libmgcp/mgcp_protocol.c | 2 |
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"; |