diff options
author | Monty <monty@mariadb.org> | 2018-01-03 01:05:25 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2018-01-03 01:05:25 +0200 |
commit | 16cd55a33aa14849fe25a4b9224fa4904041733c (patch) | |
tree | caddba2128be0ab4e2b14b9974ebbb5105977660 /mysys | |
parent | 14e01bd86813b692cc69f38879f3ac3105ea9cf3 (diff) | |
download | mariadb-git-16cd55a33aa14849fe25a4b9224fa4904041733c.tar.gz |
Fixed crashing bug in mysqlbinlog
- The fix in mf_iocache2.c was just to fix a compiler warning
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/mf_iocache2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/mf_iocache2.c b/mysys/mf_iocache2.c index 5c888d840e2..ef163ee24d3 100644 --- a/mysys/mf_iocache2.c +++ b/mysys/mf_iocache2.c @@ -266,11 +266,11 @@ my_b_write_backtick_quote(IO_CACHE *info, const char *str, size_t len) ++p; count= p - start; if (count && my_b_write(info, start, count)) - return (size_t)-1; + return 1; if (p >= end) break; if (my_b_write(info, (uchar *)"``", 2)) - return (size_t)-1; + return 1; ++p; } return (my_b_write(info, (uchar *)"`", 1)); |