From 4f9913301e6ebe299b214ec88f278be091b83c04 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Sat, 17 Jul 2021 16:24:23 +0200 Subject: [PATCH] edox: Avoid LTO null pointer warning --- dox/ttfont.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dox/ttfont.c b/dox/ttfont.c index 99dd67ee..2404882b 100644 --- a/dox/ttfont.c +++ b/dox/ttfont.c @@ -1,6 +1,6 @@ /* * 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 * 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; - if (!f) - return; - imlib_context_set_font(f->face); imlib_get_text_advance(text, &w, &h); if (width_return)