Changeset 541 for trunk/src/sh_log_check.c
- Timestamp:
- Jan 16, 2019, 11:57:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_log_check.c
r481 r541 601 601 SH_MUTEX_UNLOCK(mutex_thread_nolog); 602 602 603 memset (&(logfile->offset), '\0', sizeof(fpos_t));603 memset (&(logfile->offset), 0, sizeof(fpos_t)); 604 604 logfile->flags |= SH_LOGFILE_REWIND; 605 605 return 0; … … 623 623 /* done with rotated file, start with current file 624 624 */ 625 memset (&(logfile->offset), '\0', sizeof(fpos_t));625 memset (&(logfile->offset), 0, sizeof(fpos_t)); 626 626 logfile->flags |= SH_LOGFILE_REWIND; 627 627 logfile->flags &= ~SH_LOGFILE_MOVED; … … 646 646 else 647 647 { 648 memset (&(logfile->offset), '\0', sizeof(fpos_t));648 memset (&(logfile->offset), 0, sizeof(fpos_t)); 649 649 logfile->flags |= SH_LOGFILE_REWIND; 650 650 logfile->inode = buf.st_ino; … … 965 965 if (status != 1) 966 966 { 967 memset(s, '\0', size);967 memset(s, 0, size); 968 968 if (ferror(logfile->fp) && (logfile->flags & SH_LOGFILE_PIPE) == 0) 969 969 {
Note:
See TracChangeset
for help on using the changeset viewer.