Valgrind fixes
Valgrind fixes
This commit is contained in:
@ -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) {
|
||||
|
@ -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 */
|
||||
|
Reference in New Issue
Block a user