summaryrefslogtreecommitdiffstats
path: root/sys-utils/flock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/flock.c')
-rw-r--r--sys-utils/flock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/flock.c b/sys-utils/flock.c
index 0d4a8fbf5..50cea1392 100644
--- a/sys-utils/flock.c
+++ b/sys-utils/flock.c
@@ -87,7 +87,7 @@ static void strtotimeval(const char *str, struct timeval *tv)
static void setup_timer(struct itimerval *timer, struct itimerval *old_timer,
struct sigaction *sa, struct sigaction *old_sa)
{
- memset(sa, 0, sizeof sa);
+ memset(sa, 0, sizeof *sa);
sa->sa_handler = timeout_handler;
sa->sa_flags = SA_RESETHAND;
sigaction(SIGALRM, sa, old_sa);