diff options
author | Alexey Botchkov <holyfoot@mysql.com> | 2008-11-21 17:38:42 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@mysql.com> | 2008-11-21 17:38:42 +0400 |
commit | 50a2eeb089ce3147f523d89ac3118e8173728ca8 (patch) | |
tree | 0ee040b7dd3afd19bf08093c172f7445efa8e238 /sql/slave.cc | |
parent | 82ee1ccba459150fb31ab457797d1f7bc6aee327 (diff) | |
download | mariadb-git-50a2eeb089ce3147f523d89ac3118e8173728ca8.tar.gz |
Bug#25058 ignored return codes in memory allocation functions
memory allocation error checks added for functions
calling insert_dynamic()
per-file messages:
myisam/mi_delete.c
Bug#25058 ignored return codes in memory allocation functions
out-of-memory errors handled
myisam/mi_write.c
Bug#25058 ignored return codes in memory allocation functions
out-of-memory errors handled
server-tools/instance-manager/instance_options.cc
Bug#25058 ignored return codes in memory allocation functions
out-of-memory errors handled
sql/slave.cc
Bug#25058 ignored return codes in memory allocation functions
out-of-memory errors handled
sql/sp_head.cc
Bug#25058 ignored return codes in memory allocation functions
out-of-memory errors handled
sql/sp_head.h
Bug#25058 ignored return codes in memory allocation functions
out-of-memory errors handled
sql/sp_pcontext.cc
Bug#25058 ignored return codes in memory allocation functions
out-of-memory errors handled
sql/sp_pcontext.h
Bug#25058 ignored return codes in memory allocation functions
out-of-memory errors handled
sql/sql_select.cc
Bug#25058 ignored return codes in memory allocation functions
out-of-memory errors handled
sql/sql_yacc.yy
Bug#25058 ignored return codes in memory allocation functions
out-of-memory errors handled
Diffstat (limited to 'sql/slave.cc')
-rw-r--r-- | sql/slave.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/slave.cc b/sql/slave.cc index b4e74f8e68d..c15c395cdb8 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -1053,8 +1053,7 @@ int add_wild_table_rule(DYNAMIC_ARRAY* a, const char* table_spec) e->tbl_name = e->db + (dot - table_spec) + 1; e->key_len = len; memcpy(e->db, table_spec, len); - insert_dynamic(a, (gptr)&e); - return 0; + return insert_dynamic(a, (gptr)&e); } |