Ignore:
Timestamp:
Jan 16, 2019, 11:57:48 PM (6 years ago)
Author:
katerina
Message:

Fix for ticket #433 (coding standardisation).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_log_check.c

    r481 r541  
    601601      SH_MUTEX_UNLOCK(mutex_thread_nolog);
    602602
    603       memset (&(logfile->offset), '\0', sizeof(fpos_t));
     603      memset (&(logfile->offset), 0, sizeof(fpos_t));
    604604      logfile->flags |= SH_LOGFILE_REWIND;
    605605      return 0;
     
    623623          /* done with rotated file, start with current file
    624624           */
    625           memset (&(logfile->offset), '\0', sizeof(fpos_t));
     625          memset (&(logfile->offset), 0, sizeof(fpos_t));
    626626          logfile->flags    |= SH_LOGFILE_REWIND;
    627627          logfile->flags    &= ~SH_LOGFILE_MOVED;
     
    646646          else
    647647            {
    648               memset (&(logfile->offset), '\0', sizeof(fpos_t));
     648              memset (&(logfile->offset), 0, sizeof(fpos_t));
    649649              logfile->flags    |= SH_LOGFILE_REWIND;
    650650              logfile->inode     = buf.st_ino;
     
    965965      if (status != 1)
    966966        {
    967           memset(s, '\0', size);
     967          memset(s, 0, size);
    968968          if (ferror(logfile->fp) && (logfile->flags & SH_LOGFILE_PIPE) == 0)
    969969            {
Note: See TracChangeset for help on using the changeset viewer.