From ae09895c9136ef6455d3bac3f25070a90e1df9c2 Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Wed, 24 Dec 2014 10:06:12 +0400 Subject: [PATCH] MDEV-7277 Server crashes on creating/opening tables on Windows debug build. The srid variable was used uninitialised when the field wasn't GIS. Only problem is that it makes the debugger unhappy. Still added the initialization. --- sql/table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/table.cc b/sql/table.cc index 9bcc8e31d71..ebe058472ca 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -1445,7 +1445,7 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write, LEX_STRING comment; Virtual_column_info *vcol_info= 0; bool fld_stored_in_db= TRUE; - uint gis_length, gis_decimals, srid; + uint gis_length, gis_decimals, srid= 0; if (new_frm_ver >= 3) {