fix allocation size bug in got_lockfile_lock()
diff --git a/lib/lockfile.c b/lib/lockfile.c
index 5fb38e7..97ae4bc 100644
--- a/lib/lockfile.c
+++ b/lib/lockfile.c
@@ -37,7 +37,7 @@ got_lockfile_lock(struct got_lockfile **lf, const char *path)
const int flags = O_RDONLY | O_CREAT | O_EXCL | O_EXLOCK;
int attempts = 5;
- *lf = calloc(1, sizeof(*lf));
+ *lf = calloc(1, sizeof(**lf));
if (*lf == NULL)
return got_error_from_errno();
(*lf)->fd = -1;