Skip to content

Commit ae09895

Browse files
author
Alexey Botchkov
committed
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.
1 parent 03e0f1f commit ae09895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/table.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
14451445
LEX_STRING comment;
14461446
Virtual_column_info *vcol_info= 0;
14471447
bool fld_stored_in_db= TRUE;
1448-
uint gis_length, gis_decimals, srid;
1448+
uint gis_length, gis_decimals, srid= 0;
14491449

14501450
if (new_frm_ver >= 3)
14511451
{

0 commit comments

Comments
 (0)