From 4c5a2c4d56f3e6a1af5f5c84a8a4735e8a345616 Mon Sep 17 00:00:00 2001 From: George Joseph Date: Fri, 16 Sep 2022 07:43:00 -0600 Subject: [PATCH] res_geolocation: Fix issues exposed by compiling with -O2 Fixed "may be used uninitialized" errors in geoloc_config.c. ASTERISK-30234 Change-Id: I1ea336bf7abbc16fa59b75720f0db8f1d960b3d4 --- res/res_geolocation/geoloc_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_geolocation/geoloc_config.c b/res/res_geolocation/geoloc_config.c index dea7a22050..26dd2d9fd1 100644 --- a/res/res_geolocation/geoloc_config.c +++ b/res/res_geolocation/geoloc_config.c @@ -187,7 +187,7 @@ static int geoloc_profile_apply_handler(const struct ast_sorcery *sorcery, void struct ast_geoloc_location *location; const char *id = ast_sorcery_object_get_id(profile); enum ast_geoloc_validate_result result; - enum ast_geoloc_format format; + enum ast_geoloc_format format = AST_GEOLOC_FORMAT_NONE; int rc = 0; if (!ast_strlen_zero(profile->location_reference)) {