From 2fc76a50229ab29f6524dc08d21ab52b750b2918 Mon Sep 17 00:00:00 2001 From: Anel Husakovic Date: Sat, 27 Mar 2021 21:02:09 +0100 Subject: MDEV-13467: Feature request: Support for ST_Distance_Sphere() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - jump to label ‘handle_errors’ can enter to the scope of non-POD ‘Geometry_buffer buffer2’ --- sql/item_geofunc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/item_geofunc.cc b/sql/item_geofunc.cc index 83a9cabf7b2..0daf9da4a81 100644 --- a/sql/item_geofunc.cc +++ b/sql/item_geofunc.cc @@ -2549,7 +2549,7 @@ double Item_func_sphere_distance::val_real() null_value= (args[0]->null_value || args[1]->null_value); if (null_value) { - goto handle_errors; + return 0; } if (arg_count == 3) @@ -2559,7 +2559,7 @@ double Item_func_sphere_distance::val_real() if (args[2]->null_value) { null_value= true; - goto handle_errors; + return 0; } if (sphere_radius <= 0) { -- cgit v1.2.1