summaryrefslogtreecommitdiffstats
path: root/src/sh_log_parse_apache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sh_log_parse_apache.c')
-rw-r--r--src/sh_log_parse_apache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sh_log_parse_apache.c b/src/sh_log_parse_apache.c
index 06cdf4e..5e40aab 100644
--- a/src/sh_log_parse_apache.c
+++ b/src/sh_log_parse_apache.c
@@ -353,7 +353,7 @@ struct sh_logrecord * sh_parse_apache (sh_string * logline, void * fileinfo)
struct tm btime;
char * ptr = NULL;
- memset(&btime, '\0', sizeof(struct tm));
+ memset(&btime, 0, sizeof(struct tm));
btime.tm_isdst = -1;
/* example: 01/Jun/2008:07:55:28 +0200 */