diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-05-07 14:36:51 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-05-09 08:47:54 +0800 |
commit | 038cb53fa8e19592b9c7021176fda194799f1d51 (patch) | |
tree | 61dd1a791c222d7d0cb2711a81feb93a766ae136 /ui/ncurses/generic-main.c | |
parent | 488fa97839822949f855de1efa3cf47756b7f72b (diff) | |
download | talos-petitboot-038cb53fa8e19592b9c7021176fda194799f1d51.tar.gz talos-petitboot-038cb53fa8e19592b9c7021176fda194799f1d51.zip |
ui/nc: Handle cui_opt_data with no boot option more gracefully
We can currently segfault petitboot by escaping from the option editor
(before entering any details), then trying to boot the new, empty
option.
This change adds some sanity checks to prevent a segfault.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/generic-main.c')
0 files changed, 0 insertions, 0 deletions