Skip to content

Commit 4e83ab3

Browse files
felipecgitster
authored andcommitted
reset: trivial style cleanup
Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 82a0672 commit 4e83ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
323323
die_if_unmerged_cache(reset_type);
324324

325325
if (reset_type != SOFT) {
326-
struct lock_file *lock = xcalloc(1, sizeof(struct lock_file));
326+
struct lock_file *lock = xcalloc(1, sizeof(*lock));
327327
int newfd = hold_locked_index(lock, 1);
328328
if (reset_type == MIXED) {
329329
int flags = quiet ? REFRESH_QUIET : REFRESH_IN_PORCELAIN;

0 commit comments

Comments
 (0)