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:54:14 +0000 (11:54 -0400)
commitc6f50f8869ac0dd10040f5c32387eb404f9ff50a
tree63705e98f75ef22f425c6a0b5bff7500ab18f6f0
parent6518e6562b56b258c4933fcb8bce057215544a8f
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