This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Initialize status in gdbserver/linux-low.c


Hi,

As the code for handle_extended_wait exists today, status can be used
uninitialized on line 486 if pull_pid_from_list on line 451 returns
true.

This near-trivial patch initializes it to zero at the declaration.

OK for mainline?

Sterling


2012-07-07  Sterling Augustine  <saugustine@google.com>

	* gdbserver/linux-low.c (handle_extended_wait): Initialize status.

Attachment: patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]