mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Fix a crash when Arctic Ocean is selected.
MFC after: 1 week
This commit is contained in:
parent
5de57ff6ba
commit
62467b2549
1 changed files with 2 additions and 3 deletions
|
|
@ -107,9 +107,8 @@ continent_country_menu(dialogMenuItem *continent)
|
|||
int menulen;
|
||||
|
||||
/* Short cut -- if there's only one country, don't post a menu. */
|
||||
if (contp->nitems == 1) {
|
||||
return set_zone_menu(&contp->menu[0]);
|
||||
}
|
||||
if (contp->nitems == 1)
|
||||
return (contp->menu[0].fire(&contp->menu[0]));
|
||||
|
||||
/* It's amazing how much good grammar really matters... */
|
||||
if (!isocean)
|
||||
|
|
|
|||
Loading…
Reference in a new issue