aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/mgcp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-04-28 09:28:18 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-04-28 09:40:40 +0200
commit5a2484b10e8aeec3841833b79a8973cacb37bcee (patch)
tree4171cd58f9ed7c7d534abac0b1d984942e73dada /openbsc/tests/mgcp
parentcb43a9ac4489040185addd528a3143655ea349be (diff)
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
Diffstat (limited to 'openbsc/tests/mgcp')
0 files changed, 0 insertions, 0 deletions