This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Initialize `location' in gdbpy_decode_line
- From: Keith Seitz <keiths at redhat dot com>
- To: gdb-patches <gdb-patches at sourceware dot org>
- Date: Wed, 12 Aug 2015 11:32:45 -0700
- Subject: Re: [PATCH] Initialize `location' in gdbpy_decode_line
- Authentication-results: sourceware.org; auth=none
- References: <1439401110-12694-1-git-send-email-keiths at redhat dot com> <CADPb22S-Wrhw9aEVR9LhmVJ7rPYi0GgDxKCSW8qgGUNT12jU-A at mail dot gmail dot com>
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