From: Andrew Burgess Date: Tue, 26 May 2015 21:31:23 +0000 (+0100) Subject: gdb: tui: Minor fix to compare against NULL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b93fd21dccc2cfa9a335ddba7435a341b49330ae;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2a6a870fa99..ccb5bdeff06 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-05-26 Andrew Burgess + + * tui/tui-regs.c (tui_reg_next_command): Compare against NULL. + 2015-05-26 Andrew Burgess * tui/tui-regs.c (tui_reg_prev_command): New function. diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 7cf386d3303..6ac3c2b4670 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -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); } }