Commit 29d71bf4 authored by Filippos Giannakos's avatar Filippos Giannakos

Fix wrong memset arguments

parent ed4afb35
......@@ -253,7 +253,7 @@ llpcache_fork_write(td_llpcache_t *s, td_request_t treq)
return;
}
memset(req, 0, sizeof(req));
memset(req, 0, sizeof(*req));
req->treq = treq;
......@@ -553,7 +553,7 @@ llecache_forward_write(td_llecache_t *s, td_request_t treq)
return;
}
memset(req, 0, sizeof(req));
memset(req, 0, sizeof(*req));
req->treq = treq;
req->pending = treq.secs;
......
......@@ -163,7 +163,7 @@ tapdisk_logfile_open(td_logfile_t *log,
{
int err;
memset(log, 0, sizeof(log));
memset(log, 0, sizeof(*log));
tapdisk_logfile_name(log->path, sizeof(log->path), dir, ident, ext);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment