edox: Avoid LTO null pointer warning

This commit is contained in:
Kim Woelders 2021-07-17 16:24:23 +02:00
parent 551ff7b669
commit 4f9913301e
1 changed files with 1 additions and 4 deletions

View File

@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
* Copyright (C) 2010-2014 Kim Woelders * Copyright (C) 2010-2021 Kim Woelders
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to * of this software and associated documentation files (the "Software"), to
@ -116,9 +116,6 @@ Efont_extents(Efont * f, const char *text, int *font_ascent_return,
{ {
int w, h; int w, h;
if (!f)
return;
imlib_context_set_font(f->face); imlib_context_set_font(f->face);
imlib_get_text_advance(text, &w, &h); imlib_get_text_advance(text, &w, &h);
if (width_return) if (width_return)