diff options
author | Michael Widenius <monty@askmonty.org> | 2010-04-01 12:04:26 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2010-04-01 12:04:26 +0300 |
commit | 1aafea91e5e11c355b978c85544059224ec473cf (patch) | |
tree | a6fe26c7dc5503bdb62ef60d3e7d5f4ca2b816bb /mysys | |
parent | fee40e27738122d5c7d7916a1cfa8cd2b5a20186 (diff) | |
parent | cebec393cf0a5558a2800fb193ba098bda4eabe1 (diff) | |
download | mariadb-git-1aafea91e5e11c355b978c85544059224ec473cf.tar.gz |
Merge with 5.1
Fixed valgrind warnings found from running main.connect under valgrind
sql/sp_head.cc:
Ensure that vcol_info is reset
sql/sql_acl.cc:
Fixed usage of wrong memroot for password
sql/sql_yacc.yy:
Ensure that vcol_info is reset
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/mf_keycache.c | 6 | ||||
-rw-r--r-- | mysys/my_gethostbyname.c | 9 |
2 files changed, 12 insertions, 3 deletions
diff --git a/mysys/mf_keycache.c b/mysys/mf_keycache.c index 0630d194234..f7b420c3bf2 100644 --- a/mysys/mf_keycache.c +++ b/mysys/mf_keycache.c @@ -3924,6 +3924,12 @@ restart: uint next_status; uint hash_requests; + LINT_INIT(next_hash_link); + LINT_INIT(next_diskpos); + LINT_INIT(next_file); + LINT_INIT(next_status); + LINT_INIT(hash_requests); + total_found++; found++; KEYCACHE_DBUG_ASSERT(found <= keycache->blocks_used); diff --git a/mysys/my_gethostbyname.c b/mysys/my_gethostbyname.c index 067fdfee9db..985a76faf0d 100644 --- a/mysys/my_gethostbyname.c +++ b/mysys/my_gethostbyname.c @@ -91,9 +91,12 @@ extern pthread_mutex_t LOCK_gethostbyname_r; is finished with the structure. */ -struct hostent *my_gethostbyname_r(const char *name, - struct hostent *result, char *buffer, - int buflen, int *h_errnop) +struct hostent * +my_gethostbyname_r(const char *name, + struct hostent *result __attribute__((unused)), + char *buffer __attribute__((unused)), + int buflen__attribute__((unused)), + int *h_errnop) { struct hostent *hp; pthread_mutex_lock(&LOCK_gethostbyname_r); |