summaryrefslogtreecommitdiffstats
path: root/src/sh_log_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sh_log_check.c')
-rw-r--r--src/sh_log_check.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sh_log_check.c b/src/sh_log_check.c
index cc6fc4f..3114060 100644
--- a/src/sh_log_check.c
+++ b/src/sh_log_check.c
@@ -600,7 +600,7 @@ int sh_open_for_reader (struct sh_logfile * logfile)
SH_FREE(tmp);
SH_MUTEX_UNLOCK(mutex_thread_nolog);
- memset (&(logfile->offset), '\0', sizeof(fpos_t));
+ memset (&(logfile->offset), 0, sizeof(fpos_t));
logfile->flags |= SH_LOGFILE_REWIND;
return 0;
}
@@ -622,7 +622,7 @@ int sh_open_for_reader (struct sh_logfile * logfile)
{
/* done with rotated file, start with current file
*/
- memset (&(logfile->offset), '\0', sizeof(fpos_t));
+ memset (&(logfile->offset), 0, sizeof(fpos_t));
logfile->flags |= SH_LOGFILE_REWIND;
logfile->flags &= ~SH_LOGFILE_MOVED;
logfile->inode = buf.st_ino;
@@ -645,7 +645,7 @@ int sh_open_for_reader (struct sh_logfile * logfile)
}
else
{
- memset (&(logfile->offset), '\0', sizeof(fpos_t));
+ memset (&(logfile->offset), 0, sizeof(fpos_t));
logfile->flags |= SH_LOGFILE_REWIND;
logfile->inode = buf.st_ino;
logfile->device_id = buf.st_dev;
@@ -964,7 +964,7 @@ sh_string * sh_binary_reader (void * s, size_t size,
if (status != 1)
{
- memset(s, '\0', size);
+ memset(s, 0, size);
if (ferror(logfile->fp) && (logfile->flags & SH_LOGFILE_PIPE) == 0)
{
char * tmp;