]> git.ipfire.org Git - thirdparty/asterisk.git/commit
geoloc_eprofile.c: Fix setting of loc_src in set_loc_src()
authorGeorge Joseph <gjoseph@digium.com>
Wed, 13 Jul 2022 18:38:10 +0000 (12:38 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 13 Jul 2022 18:43:35 +0000 (13:43 -0500)
commitfcc3e7fac61b9e4b37b9f6710e0bfb3074b28242
tree230c091be6e9d2576419cade4f7123c03fa92fa1
parentcdbd973ecdc49ff178b43b34180d005c21d06cbf
geoloc_eprofile.c: Fix setting of loc_src in set_loc_src()

line 196:    loc_src = '\0';
should have been
line 196:    *loc_src = '\0';

The issue was caught by the gcc optimizer complaining that
loc_src had a zero length because the pointer itself was being
set to NULL instead of the _contents_ of the pointer being set
to the NULL terminator.

ASTERISK-30138
Reported-by: Sean Bright
Change-Id: Id247be113cc8510f043ca053d5b4f5f3d32acd29
res/res_geolocation/geoloc_eprofile.c