diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2011-11-24 16:26:13 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2011-11-24 16:26:13 +0400 |
commit | 7b08d996277a5019f1e357f595ba78a3455841cc (patch) | |
tree | 2615506f738defae09b5c805f900a21e8d955bbc /sql/spatial.cc | |
parent | fd3295e0acb782790eb185352a401473fd4eba99 (diff) | |
download | mariadb-git-7b08d996277a5019f1e357f595ba78a3455841cc.tar.gz |
fixes to make compilers happy.
per-file comments:
mysql-test/t/gis-precise.test
number-to-string conversion differs on Windows.
Have to tolerate this while GIS data is stored in doubles.
sql/spatial.cc
prev_x initialization added.
Diffstat (limited to 'sql/spatial.cc')
-rw-r--r-- | sql/spatial.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/spatial.cc b/sql/spatial.cc index b4ce6f59185..89ecec51406 100644 --- a/sql/spatial.cc +++ b/sql/spatial.cc @@ -766,7 +766,8 @@ int Gis_line_string::store_shapes(Gcalc_shape_transporter *trn) const { uint32 n_points; double x, y; - double prev_x, prev_y; + double prev_x= 0.0; + double prev_y= 0.0; int first_point= 1; const char *data= m_data; |