mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Try to silence Coverity warning
This commit is contained in:
parent
4d76503efd
commit
91170722e6
@ -17,6 +17,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <encodings/utf.h>
|
||||
#include <string/stdstring.h>
|
||||
|
||||
#include "../common/gl_common.h"
|
||||
#include "../font_driver.h"
|
||||
@ -384,10 +385,11 @@ static void gl_raster_font_render_message(
|
||||
int lines = 0;
|
||||
float line_height;
|
||||
|
||||
if ( !msg
|
||||
|| !*msg
|
||||
if (!font)
|
||||
return;
|
||||
|
||||
if ( string_is_empty(msg)
|
||||
|| !font->gl
|
||||
|| !font
|
||||
|| !font->font_data
|
||||
|| !font->font_driver)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user