Skip to content
Permalink
Browse files
Fixed compiler warning and warning from valgrind
The failing test was main.gis-json
  • Loading branch information
montywi committed Nov 2, 2017
1 parent 6b7918d commit 0f4e005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -144,7 +144,7 @@ String *Item_func_geometry_from_json::val_str(String *str)
{
String *sv= args[1]->val_str(&tmp_js);
my_error(ER_WRONG_VALUE_FOR_TYPE, MYF(0),
"option", sv->c_ptr(), "ST_GeometryFromJSON");
"option", sv->c_ptr_safe(), "ST_GeometryFromJSON");
null_value= 1;
return 0;
}
@@ -650,7 +650,7 @@ bool TDBTBM::IsLocal(PTABLE tbp)

return ((!stricmp(tdbp->Host, "localhost") ||
!strcmp(tdbp->Host, "127.0.0.1")) &&
tdbp->Port == (int)GetDefaultPort());
(int) tdbp->Port == (int)GetDefaultPort());
} // end of IsLocal

/***********************************************************************/

0 comments on commit 0f4e005

Please sign in to comment.