22 lines
757 B
Plaintext
22 lines
757 B
Plaintext
$OpenBSD: patch-src_lib_font_load_c,v 1.1 2009/12/28 17:22:21 phessler Exp $
|
|
--- src/lib/font_load.c.orig Mon Dec 28 04:57:35 2009
|
|
+++ src/lib/font_load.c Mon Dec 28 04:58:08 2009
|
|
@@ -221,6 +221,8 @@ imlib_font_free(ImlibFont * fn)
|
|
int
|
|
imlib_font_insert_into_fallback_chain_imp(ImlibFont * fn, ImlibFont * fallback)
|
|
{
|
|
+ ImlibFont *tmp;
|
|
+
|
|
/* avoid infinite recursion */
|
|
if (fn == fallback)
|
|
return 1;
|
|
@@ -229,7 +231,7 @@ imlib_font_insert_into_fallback_chain_imp(ImlibFont *
|
|
imlib_font_remove_from_fallback_chain_imp(fallback);
|
|
|
|
/* insert fallback into fn's font chain */
|
|
- ImlibFont *tmp = fn->fallback_next;
|
|
+ tmp = fn->fallback_next;
|
|
|
|
fn->fallback_next = fallback;
|
|
fallback->fallback_prev = fn;
|