]> git.wh0rd.org Git - fontconfig.git/commitdiff
Fix suspicious return expression which causes junk to be returned.
authorPatrick Lam <plam@MIT.EDU>
Fri, 3 Mar 2006 06:11:31 +0000 (06:11 +0000)
committerPatrick Lam <plam@MIT.EDU>
Fri, 3 Mar 2006 06:11:31 +0000 (06:11 +0000)
reviewed by: plam

ChangeLog
src/fclang.c

index b94b0f69423b7995d6cf1c9931061bf9a307c9f8..f6b9fa8aa64e911d903c9c064fd765e1ed504a0a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-03-02  Egmont Koblinger  <egmont@uhulinux.hu>
+       reviewed by: plam
+       
+       * src/fclang.c (FcCharSetForLang):
+
+       Fix suspicious return expression which causes junk 
+       to be returned.
+
 2006-02-24  Patrick Lam         <plam@mit.edu>
        * ChangeLog:
        * README:
index d7df89ddd163b8959ea64aeb745764e938739d39..ab8105d965d43e49afe3baa4a38e345423ff65ab 100644 (file)
@@ -216,7 +216,7 @@ FcCharSetForLang (const FcChar8 *lang)
     }
     if (country == -1)
        return 0;
-    return &fcLangCharSets[i].charset;
+    return &fcLangCharSets[country].charset;
 }
 
 FcLangSet *