osmo-msc/openbsc/src/libmgcp
Jacob Erlbeck 5a2484b10e mgcp: Move assignment of src_codec downwards
Currently the src_codec const variable is set to &src_end->codec
before src_end is checked against NULL. Since the assigment is just
an address operation and the memory where it points to is only
accessed after the NULL check, this does not harm technically.
Nevertheless this is potential source for errors if that code is
changed.

This commit moves the definition below the NULL check. This does not
comply with the coding style, but it cannot be split into definition
and a later assignment due to the const qualifier.

Sponsored-by: On-Waves ehf
2015-04-28 09:40:40 +02:00
..
Makefile.am osmux: rename osmux.c to mgcp_osmux.c 2014-08-28 19:40:51 +02:00
g711common.h mgcp: Move transcoding to libmgcp 2014-06-05 14:08:53 +02:00
mgcp_network.c rtp: Use osmocom/netif/rtp.h for the rtp structure definition 2015-03-22 09:51:43 +01:00
mgcp_osmux.c mgcp: Honor the rtp IP_TOS settings for Osmux 2015-01-21 11:43:03 +01:00
mgcp_protocol.c libmgcp: Fail if transcoding can't be configured 2015-03-29 11:46:45 +02:00
mgcp_transcode.c mgcp: Move assignment of src_codec downwards 2015-04-28 09:40:40 +02:00
mgcp_vty.c mgcp: Allow to disable transcoding for trunks 2015-04-24 16:10:54 -04:00