Valgrind fixes

Valgrind fixes
This commit is contained in:
MassimilianoPinto
2015-09-15 16:18:10 +02:00
parent 4732cc639c
commit 374056cecc
2 changed files with 1 additions and 2 deletions

View File

@ -267,7 +267,7 @@ int fd;
fsync(fd);
close(router->binlog_fd);
spinlock_acquire(&router->binlog_lock);
strncpy(router->binlog_name, file, BINLOG_FNAMELEN);
memmove(router->binlog_name, file, BINLOG_FNAMELEN);
router->current_pos = lseek(fd, 0L, SEEK_END);
if (router->current_pos < 4) {
if (router->current_pos == 0) {

View File

@ -3984,7 +3984,6 @@ uint8_t *ptr;
} else {
*ptr++ = 1; /* warning byte set to 1 */
*ptr++ = 0;
*ptr++ = 0;
}
/* set the new warning in this slave connection */