Initialize variable in py_get_event_thread
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 25 Aug 2018 15:52:24 +0000 (11:52 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 25 Aug 2018 15:52:24 +0000 (11:52 -0400)
commitbbbbbceebc342d583057a11d88bae85f451cd904
treea665fb43cf86a032130c6ee497f1696b2dcf11d7
parent7a815dd566f3dd32435ac73aa0a0cc948d525e06
Initialize variable in py_get_event_thread

The pythread variable could be used without being initialized, fix it by
initializing it to nullptr.

gdb/ChangeLog:

* python/py-threadevent.c (py_get_event_thread): Initialize
pythread.
gdb/ChangeLog
gdb/python/py-threadevent.c