Skip to content

Commit

Permalink
ncurses/nc-cui: fix unreferenced assertion variable
Browse files Browse the repository at this point in the history
Signed-off-by: Brett Grandbois <brett.grandbois@opengear.com>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
  • Loading branch information
Brett Grandbois authored and sammj committed Feb 7, 2018
1 parent 44ab15f commit b63b778
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/ncurses/nc-cui.c
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,8 @@ static void cui_cancel_autoboot_on_exit(struct cui *cui)

int cui_run(struct cui *cui)
{
assert(main);
assert(cui);
assert(cui->main);

cui->current = &cui->main->scr;
cui->default_item = 0;
Expand Down

0 comments on commit b63b778

Please sign in to comment.