Staging
v0.5.2
Revision a8db80c22494396a81d2b4b7f4082c369fc0f78d authored by Jeff King on 12 January 2008, 09:04:32 UTC, committed by Junio C Hamano on 12 January 2008, 19:10:09 UTC
The "seen" variable is used by match_pathspec, and must have
as many elements as there are in the given pathspec. We
create the pathspec either from the command line arguments
_or_ from just the current prefix.

Thus allocating "seen" based upon just argc is wrong, since
if argc == 0, then we still have one pathspec, the prefix,
but we don't allocate any space in "seen".

Signed-off-by: Jeff King <peff@peff.net>
Tested-by: İsmail Dönmez <ismail@pardus.org.tr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 98fa5b6
Raw File
this--description
Unnamed repository; edit this file to name it for gitweb.
back to top