Skip to content

Commit

Permalink
Merge pull request #3459 from sysown/v2.x-3458
Browse files Browse the repository at this point in the history
Closes #3458: Fix 'conditional jump or move depends on uninitialised value(s)' detected by Valgrind
  • Loading branch information
renecannao authored May 26, 2021
2 parents 3831a5e + fa58bc4 commit 5a6095c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/MySQL_Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ Query_Info::Query_Info() {
waiting_since = 0;
affected_rows=0;
rows_sent=0;
start_time=0;
end_time=0;
}

Query_Info::~Query_Info() {
Expand Down
3 changes: 3 additions & 0 deletions test/tap/tests/test_ps_no_store-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@ int select_config_file(MYSQL* mysql, std::string& resultset) {
fprintf(stderr, "error\n");
}

return 0;
}

int restore_admin(MYSQL* mysqladmin) {
MYSQL_QUERY(mysqladmin, "load mysql query rules from disk");
MYSQL_QUERY(mysqladmin, "load mysql query rules to runtime");
MYSQL_QUERY(mysqladmin, "load mysql servers from disk");
MYSQL_QUERY(mysqladmin, "load mysql servers to runtime");

return 0;
}

int main(int argc, char** argv) {
Expand Down

0 comments on commit 5a6095c

Please sign in to comment.