gdb: tui: Minor fix to compare against NULL.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 26 May 2015 21:31:23 +0000 (22:31 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 26 May 2015 21:31:23 +0000 (22:31 +0100)
Minor coding standard fix to compare against NULL.

gdb/ChangeLog:

* tui/tui-regs.c (tui_reg_next_command): Compare against NULL.

gdb/ChangeLog
gdb/tui/tui-regs.c

index 2a6a870fa99d7b15317acb4b8751bfcf56fc56e7..ccb5bdeff06d3012299bd961cee8fd292c276e31 100644 (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.
index 7cf386d3303244286d9afac362905eb64799e295..6ac3c2b467053df83aa63785f9a9c899da54ade7 100644 (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);
     }
 }