]> 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:44:09 +0000 (13:44 -0500)
commit6163de32955a4976dceb5f4f67bc8cecfee7cc27
treeded23ee5a54a06c640683985c0ae901ee17593b4
parent6c2f4d57a34f5796e8b26ae761cd6c04f99daa16
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