Skip to content

Commit db49003

Browse files
Initialize pointers to avoid MSAN warnings
1 parent 1a8854f commit db49003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/spatial.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ int Gis_polygon::is_valid(int *valid) const
21732173
MBR mbr;
21742174
uint32 num_rings;
21752175
const char *c_end;
2176-
char *border_count, *touches_count, *internals;
2176+
char *border_count= nullptr, *touches_count= nullptr, *internals= nullptr;
21772177
int result= 0;
21782178

21792179
*valid= 0;

0 commit comments

Comments
 (0)