Re: [PATCH] gitweb: fix 'Use of uninitialized value' error in href()

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

 



2009/7/31 Jakub Narebski <jnareb@xxxxxxxxx>:
> On Fri, 31 July 2009, Giuseppe Bilotta wrote:
>>
>> The funny thing is that I seem to get the error for something as simple
>> as a commit view (_any_ commit view, for the matter), but I wasn't able
>> to reproduce it from the shell, which is why I'm not adding a testcase.
>
> Gaaah! A Heisenbug! ;-)

Well, I can reproduce it consistently on the gitweb repository, with
any shortlog or commit view. I also think I understand why it happens
(i.e. in some cases the check for file_parent eq file_name is done
before calling href). The question, of course, is why wouldn't it
happen in the test repository.

>> +                             if (defined $params{'file_parent'}) {
>> +                                     if (defined $params{'file_name'} && $params{'file_parent'} eq $params{'file_name'}) {
>
> or, to reduce line length even more:
>
>  +                                     if (defined $params{'file_name'} &&
>  +                                         $params{'file_parent'} eq $params{'file_name'}) {

Oh right ... should I resend?

-- 
Giuseppe "Oblomov" Bilotta
--
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]