[3/7] ncurses/nc-cui: fix unreferenced assertion variable
diff mbox series

Message ID 1518055632-11462-4-git-send-email-brett.grandbois@opengear.com
State Accepted
Headers show
Series
  • Resubmit: Yocto and musl libc fixes, syslinux parser support
Related show

Commit Message

Grandbois, Brett Feb. 8, 2018, 2:07 a.m. UTC
Signed-off-by: Brett Grandbois <brett.grandbois@opengear.com>
---
 ui/ncurses/nc-cui.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
index ee6df87..372da1e 100644
--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -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;