mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Fixed compiler warning and unitialized memory warning
- The valgrind warning came from JOIN::optimize() (sql_select.cc:1123)
This commit is contained in:
parent
a17e7d0747
commit
3ab112eb39
2 changed files with 3 additions and 1 deletions
|
@ -1464,6 +1464,8 @@ public:
|
|||
ordered_index_usage= ordered_index_void;
|
||||
need_distinct= 0;
|
||||
skip_sort_order= 0;
|
||||
with_two_phase_optimization= 0;
|
||||
is_for_splittable_grouping_derived= 0;
|
||||
need_tmp= 0;
|
||||
hidden_group_fields= 0; /*safety*/
|
||||
error= 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
|
||||
|
||||
/***********************************************************************/
|
||||
|
|
Loading…
Add table
Reference in a new issue