diff options
author | unknown <anjuta@arthur.local> | 2005-01-13 19:03:46 +0200 |
---|---|---|
committer | unknown <anjuta@arthur.local> | 2005-01-13 19:03:46 +0200 |
commit | 388cd3a7c4b7b14a2529cc757f2e18a7c127997e (patch) | |
tree | ede3fbf72c3f49f91cba46a5312d11505b2aad38 | |
parent | d5202685048e4b89f08478de56ec2e367c4c751b (diff) | |
download | mariadb-git-388cd3a7c4b7b14a2529cc757f2e18a7c127997e.tar.gz |
Bug in InnoDB;
file closing in extra/comp_err.c
BitKeeper/etc/ignore:
added extra/mysqld_ername.h
extra/comp_err.c:
Added proper closing of the file.
innobase/os/os0proc.c:
Fixed small bug in innodb.
-rw-r--r-- | .bzrignore | 1 | ||||
-rw-r--r-- | extra/comp_err.c | 1 | ||||
-rw-r--r-- | innobase/os/os0proc.c | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/.bzrignore b/.bzrignore index 0d5a8647198..ad24b223558 100644 --- a/.bzrignore +++ b/.bzrignore @@ -986,3 +986,4 @@ vio/viotest-ssl extra/mysqld_error.h extra/sql_state.h extra/created_include_files +extra/mysqld_ername.h diff --git a/extra/comp_err.c b/extra/comp_err.c index 7f6b6a5996b..89fa958e6c1 100644 --- a/extra/comp_err.c +++ b/extra/comp_err.c @@ -243,6 +243,7 @@ static int create_header_files(struct errors *error_head) fprintf(er_definef, "#define ER_ERROR_MESSAGES %d\n", er_count); my_fclose(er_definef, MYF(0)); my_fclose(sql_statef, MYF(0)); + my_fclose(er_namef, MYF(0)); DBUG_RETURN(0); } diff --git a/innobase/os/os0proc.c b/innobase/os/os0proc.c index 98254ae1055..dd2037695b7 100644 --- a/innobase/os/os0proc.c +++ b/innobase/os/os0proc.c @@ -565,7 +565,7 @@ os_mem_alloc_large( if (ptr) { if (set_to_zero) { #ifdef UNIV_SET_MEM_TO_ZERO - memset(ret, '\0', size); + memset(ptr, '\0', size); #endif } |