reset: trivial style cleanup

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Aug 30, 2013 at 16:56 UTC 4e83ab3e8d43beaa7a2097a2f34d3b9eb67525bb
1 file changed +1 -1
builtin/reset.c
+1 -1
@@ -323,7 +323,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
323 die_if_unmerged_cache(reset_type);
324
325 if (reset_type != SOFT) {
326 - struct lock_file *lock = xcalloc(1, sizeof(struct lock_file));
326 + struct lock_file *lock = xcalloc(1, sizeof(*lock));
327 int newfd = hold_locked_index(lock, 1);
328 if (reset_type == MIXED) {
329 int flags = quiet ? REFRESH_QUIET : REFRESH_IN_PORCELAIN;