Re: Funny error with git gc...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Fri, 15 May 2009, Johannes Schindelin wrote:
>  
>  	fd = mkstemp(template);
> +	if (fd < 0) {
> +		release_pack_memory((size_t)-1ll, -1);
> +		fd = mkstemp(template);

This is wrong. You can't use "template" twice. You need to re-initialize 
it. The first one will blow away the XXXX pattern.

		Linus
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]