aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-regs.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2015-05-26 22:31:23 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2015-05-26 22:31:23 +0100
commitb93fd21dccc2cfa9a335ddba7435a341b49330ae (patch)
tree3e8d8eb240d15034a272b6d54c66793337a61123 /gdb/tui/tui-regs.c
parent55b400279267cad460ca62a8211f0b414f564e93 (diff)
downloadgdb-b93fd21dccc2cfa9a335ddba7435a341b49330ae.zip
gdb-b93fd21dccc2cfa9a335ddba7435a341b49330ae.tar.gz
gdb-b93fd21dccc2cfa9a335ddba7435a341b49330ae.tar.bz2
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.
Diffstat (limited to 'gdb/tui/tui-regs.c')
-rw-r--r--gdb/tui/tui-regs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 7cf386d..6ac3c2b 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);
}
}