gdb: tui: Minor fix to compare against NULL.

Minor coding standard fix to compare against NULL.

gdb/ChangeLog:

	* tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
This commit is contained in:
Andrew Burgess 2015-05-26 22:31:23 +01:00
parent 55b4002792
commit b93fd21dcc
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
* tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
* tui/tui-regs.c (tui_reg_prev_command): New function.

View File

@ -570,7 +570,7 @@ tui_reg_next_command (char *arg, int from_tty)
if (group == NULL)
group = reggroup_next (gdbarch, NULL);
if (group)
if (group != NULL)
tui_show_registers (group);
}
}