Re: [PATCH 2/2] cmd_fetch_pack(): fix constness problem and memory leak
- From
Michael Haggerty <mhagger@alum.mit.edu>
- Date
- May 2, 2012, 13:35 UTC
- Message-ID
- <4FA13835.7080204@alum.mit.edu>
- In-Reply-To
- <CACsJy8AE7Y1Y5Drda39OfSKwTQN7oSSrb2Ai+jq_hi8XC4dtsw@mail.gmail.com>
On 05/02/2012 01:14 PM, Nguyen Thai Ngoc Duy wrote:
Show 12 quoted lines
> On Wed, May 2, 2012 at 5:40 PM,<mhagger@alum.mit.edu> wrote:
>> const char *arg = argv[i];
>>
>> - if (*arg == '-') {
>> - if (!prefixcmp(arg, "--upload-pack=")) {
>> - args.uploadpack = arg + 14;
>> - continue;
>> - }
>> [...]
> Ugh, perhaps you can convert the above to parse_options() too while
> you're making changes in this part? You can say no, I'll do it (my
> itch anyway).Sorry, I have too many balls in the air already. But feel free to veto my patch if my changes make it harder to switch to parse_options().
Michael
-- Michael Haggerty mhagger@alum.mit.edu http://softwareswirl.blogspot.com/