changeset 6143:45bdd0e4b6ea

(Fx_list_fonts): Avoid confused increment of info.
author Karl Heuer <kwzh@gnu.org>
date Wed, 02 Mar 1994 05:48:00 +0000
parents 2dbc79d01191
children 714b670eac42
files src/xfns.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Wed Mar 02 05:31:15 1994 +0000
+++ b/src/xfns.c	Wed Mar 02 05:48:00 1994 +0000
@@ -2582,15 +2582,17 @@
       tail = &list;
       for (i = 0; i < num_fonts; i++)
         {
+	  XFontStruct *thisinfo;
+
 #ifdef BROKEN_XLISTFONTSWITHINFO
           BLOCK_INPUT;
-          info = XLoadQueryFont (x_current_display, names[i]);
+          thisinfo = XLoadQueryFont (x_current_display, names[i]);
           UNBLOCK_INPUT;
 #else
-	  info = &info[i];
+	  thisinfo = &info[i];
 #endif
-          if (info && (! size_ref
-		       || same_size_fonts (info, size_ref)))
+          if (thisinfo && (! size_ref
+			   || same_size_fonts (thisinfo, size_ref)))
 	    {
 	      *tail = Fcons (build_string (names[i]), Qnil);
 	      tail = &XCONS (*tail)->cdr;