diff options
author | monty@narttu.mysql.fi <> | 2003-11-04 14:09:03 +0200 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-11-04 14:09:03 +0200 |
commit | f763d4c31d0c6aa4496c6682e4e329a19384606e (patch) | |
tree | 07ce6a4f792ac489b079759afb3cc65847ca0cb0 /sql/spatial.cc | |
parent | 4e4725377d27ff0101788fd7ed89670614ed8294 (diff) | |
download | mariadb-git-f763d4c31d0c6aa4496c6682e4e329a19384606e.tar.gz |
Removed some warnings reported by valgrind
After merge fixes.
Now code compiles, but there is still some valgrind warnings that needs to be fixed
Diffstat (limited to 'sql/spatial.cc')
-rw-r--r-- | sql/spatial.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/spatial.cc b/sql/spatial.cc index 00db94a07d6..d19429fdd9c 100644 --- a/sql/spatial.cc +++ b/sql/spatial.cc @@ -1258,6 +1258,7 @@ int GMultiPolygon::geometry_n(uint32 num, String *result) const uint32 n_polygons; const char *data= m_data, *polygon_n; LINT_INIT(polygon_n); + if (no_data(data, 4)) return 1; n_polygons= uint4korr(data); |