[PATCH] Initialize `location' in gdbpy_decode_line

Keith Seitz keiths@redhat.com
Wed Aug 12 18:32:00 GMT 2015


On 08/12/2015 10:45 AM, Doug Evans wrote:
> On Wed, Aug 12, 2015 at 10:38 AM, Keith Seitz <keiths@redhat.com> wrote:
>> BuildBot flagged an uninitialized variable coming from one of the patches
>> in my recently committed locations/explicit patchset.
>>
>> The following patch fixes this.
>>
>> Ok?
>>
>> gdb/ChangeLog
>>
>>         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
>>         and only call decode_line_1 when it is non-NULL.
>>
> 
> LGTM
> 

I've pushed this. Thank you, Doug.

Keith



More information about the Gdb-patches mailing list