kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=4f9913301e6ebe299b214ec88f278be091b83c04

commit 4f9913301e6ebe299b214ec88f278be091b83c04
Author: Kim Woelders <k...@woelders.dk>
Date:   Sat Jul 17 16:24:23 2021 +0200

    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)

-- 


Reply via email to