aboutsummaryrefslogtreecommitdiff
path: root/builtin/reset.c
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-08-30 16:56:48 -0500
committerJunio C Hamano <gitster@pobox.com>2013-08-30 20:59:04 -0700
commit4e83ab3e8d43beaa7a2097a2f34d3b9eb67525bb (patch)
tree703de58557d41df87aef5c8d784922c6c563ede2 /builtin/reset.c
parent82a0672f8ed4c63bf8420cd55f7307d40b9a6594 (diff)
downloadgit-4e83ab3e8d43beaa7a2097a2f34d3b9eb67525bb.tar.gz
git-4e83ab3e8d43beaa7a2097a2f34d3b9eb67525bb.tar.xz
reset: trivial style cleanup
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/reset.c')
-rw-r--r--builtin/reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/reset.c b/builtin/reset.c
index 225e3f141..7e65934a8 100644
--- a/builtin/reset.c
+++ b/builtin/reset.c
@@ -323,7 +323,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
die_if_unmerged_cache(reset_type);
if (reset_type != SOFT) {
- struct lock_file *lock = xcalloc(1, sizeof(struct lock_file));
+ struct lock_file *lock = xcalloc(1, sizeof(*lock));
int newfd = hold_locked_index(lock, 1);
if (reset_type == MIXED) {
int flags = quiet ? REFRESH_QUIET : REFRESH_IN_PORCELAIN;