diff options
author | unknown <dlenev@mysql.com> | 2003-09-19 20:34:58 +0400 |
---|---|---|
committer | unknown <dlenev@mysql.com> | 2003-09-19 20:34:58 +0400 |
commit | 992587f4115320b497d8a7e3fb5fbcba8eb7ce8a (patch) | |
tree | 3e8a51543a3a7da60f6e456a186b9face8dca92d /client | |
parent | f89e03fd78db56bd938293c3d7e1cdc66db5d0bc (diff) | |
download | mariadb-git-992587f4115320b497d8a7e3fb5fbcba8eb7ce8a.tar.gz |
Bugfix for bug #1340, style fix before push
client/mysqlbinlog.cc:
Small fix to avoid double initialization
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqlbinlog.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc index 43872dd718a..6eab790857d 100644 --- a/client/mysqlbinlog.cc +++ b/client/mysqlbinlog.cc @@ -200,10 +200,8 @@ public: } void process(Append_block_log_event *ae) { - Create_file_log_event* ce= 0; - - if (ae->file_id < file_names.elements) - ce= *((Create_file_log_event**)file_names.buffer + ae->file_id); + Create_file_log_event* ce= (ae->file_id < file_names.elements) ? + *((Create_file_log_event**)file_names.buffer + ae->file_id) : 0; if (ce) append_to_file(ce->fname,O_APPEND|O_BINARY|O_WRONLY,ae->block,ae->block_len); |