mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 18:44:20 +08:00
gdb: initialize interp::next
This field is never initialized, it seems to me like it would be a good idea to initialize it to nullptr to avoid bad surprises. Change-Id: I8c04319d564f5d385d8bf0acee758f6ce28b4447 Reviewed-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
parent
5a8ac2cb96
commit
4d2e669ca9
@ -87,7 +87,7 @@ private:
|
|||||||
public:
|
public:
|
||||||
/* Interpreters are stored in a linked list, this is the next
|
/* Interpreters are stored in a linked list, this is the next
|
||||||
one... */
|
one... */
|
||||||
struct interp *next;
|
interp *next = nullptr;
|
||||||
|
|
||||||
/* Has the init method been run? */
|
/* Has the init method been run? */
|
||||||
bool inited = false;
|
bool inited = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user