argv-array: fix bogus cast when freeing array
authorJeff King <peff@peff.net>
Sat, 1 Sep 2012 11:34:09 +0000 (07:34 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Sep 2012 04:10:24 +0000 (21:10 -0700)
Since the array struct stores a "const char **" argv member
(for compatibility with most of our argv-taking functions),
we have to cast away the const-ness when freeing its
elements.

However, we used the wrong type when doing so. It doesn't
make a difference since free() take a void pointer anyway,
but it can be slightly confusing to a reader.

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