Commit 0f4e0055 authored by Monty's avatar Monty

Fixed compiler warning and warning from valgrind

The failing test was main.gis-json
parent 6b7918d5
...@@ -144,7 +144,7 @@ String *Item_func_geometry_from_json::val_str(String *str) ...@@ -144,7 +144,7 @@ String *Item_func_geometry_from_json::val_str(String *str)
{ {
String *sv= args[1]->val_str(&tmp_js); String *sv= args[1]->val_str(&tmp_js);
my_error(ER_WRONG_VALUE_FOR_TYPE, MYF(0), 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; null_value= 1;
return 0; return 0;
} }
......
...@@ -650,7 +650,7 @@ bool TDBTBM::IsLocal(PTABLE tbp) ...@@ -650,7 +650,7 @@ bool TDBTBM::IsLocal(PTABLE tbp)
return ((!stricmp(tdbp->Host, "localhost") || return ((!stricmp(tdbp->Host, "localhost") ||
!strcmp(tdbp->Host, "127.0.0.1")) && !strcmp(tdbp->Host, "127.0.0.1")) &&
tdbp->Port == (int)GetDefaultPort()); (int) tdbp->Port == (int)GetDefaultPort());
} // end of IsLocal } // end of IsLocal
/***********************************************************************/ /***********************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment