AP_OSD: prevent startup segfault
This commit is contained in:
parent
844d2bf7ff
commit
8ca9af72e0
@ -940,7 +940,7 @@ void AP_OSD_Screen::set_backend(AP_OSD_Backend *_backend)
|
||||
|
||||
bool AP_OSD_Screen::check_option(uint32_t option)
|
||||
{
|
||||
return (osd->options & option) != 0;
|
||||
return osd?(osd->options & option) != 0 : false;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user