[FriBidi-commit] fribidi2/lib fribidi-arabic.c,1.2,1.3

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Apr 5 09:14:41 PDT 2007


Update of /cvs/fribidi/fribidi2/lib
In directory kemper:/tmp/cvs-serv6295/lib

Modified Files:
	fribidi-arabic.c 
Log Message:
Avoid non-const struct initializer.


Index: fribidi-arabic.c
===================================================================
RCS file: /cvs/fribidi/fribidi2/lib/fribidi-arabic.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- fribidi-arabic.c	31 Jan 2006 03:23:13 -0000	1.2
+++ fribidi-arabic.c	5 Apr 2007 16:14:39 -0000	1.3
@@ -95,7 +95,10 @@
 find_pair_match (const PairMap *table, int size, FriBidiChar first, FriBidiChar second)
 {
   PairMap *match;
-  PairMap x = {{first, second}, 0};
+  PairMap x;
+  x.pair[0] = first;
+  x.pair[1] = second;
+  x.to = 0;
   match = bsearch (&x, table, size, sizeof (table[0]), comp_PairMap);
   return match ? match->to : 0;
 }



More information about the fribidi-commit mailing list