1. Stefan Saasen
  2. git


Jeff King  committed af86deb

rerere: fix too-short initialization

This was caused by a typo in the sizeof parameter, and meant
we looked at uninitialized memory. Caught by valgrind in

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

  • Participants
  • Parent commits 8e52dc3
  • Branches master

Comments (0)

Files changed (1)

File rerere.c

View file
 	for (i = 0; i < 3; i++)
-	memset(&io, 0, sizeof(&io));
+	memset(&io, 0, sizeof(io));
 	io.io.getline = rerere_mem_getline;
 	if (output)
 		io.io.output = fopen(output, "w");