summaryrefslogtreecommitdiff
path: root/sql/spatial.cc
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-11-04 14:09:03 +0200
committermonty@narttu.mysql.fi <>2003-11-04 14:09:03 +0200
commitf763d4c31d0c6aa4496c6682e4e329a19384606e (patch)
tree07ce6a4f792ac489b079759afb3cc65847ca0cb0 /sql/spatial.cc
parent4e4725377d27ff0101788fd7ed89670614ed8294 (diff)
downloadmariadb-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.cc1
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);