[pango/master.prec99] pangowin32-fontmap.c: Fix build on older compilers




commit 050d89d5b0bb82e1202df7cb863f1f27f97226f5
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Aug 26 15:17:58 2020 +0800

    pangowin32-fontmap.c: Fix build on older compilers
    
    Declare variables at the top of the block...

 pango/pangowin32-fontmap.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c
index 8d7e0c06..6bc10a7a 100644
--- a/pango/pangowin32-fontmap.c
+++ b/pango/pangowin32-fontmap.c
@@ -1030,8 +1030,10 @@ pango_win32_font_map_load_font (PangoFontMap               *fontmap,
 
   for (i = 0; families[i] && !best_match; ++i)
     {
+      PangoWin32Family *win32family;
       PING (("name=%s", families[i]));
-      PangoWin32Family *win32family = g_hash_table_lookup (win32fontmap->families, families[i]);
+
+      win32family = g_hash_table_lookup (win32fontmap->families, families[i]);
       if (win32family)
         {
           PING (("got win32family"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]