*** empty log message ***
authorhanda <handa>
Sat, 21 May 2005 01:09:02 +0000 (01:09 +0000)
committerhanda <handa>
Sat, 21 May 2005 01:09:02 +0000 (01:09 +0000)
ChangeLog
src/otfopen.c

index f784aa2..5dae7fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-21  Kenichi Handa  <handa@m17n.org>
+
+       * src/otfopen.c (OTF_get_features): If table_info doesn't have
+       stream nor address, return -1.
+
 2005-05-19  Kenichi Handa  <handa@m17n.org>
 
        * src/otf.h (OTF_get_scripts, OTF_get_features,
index 7385805..14e6b82 100644 (file)
@@ -244,7 +244,7 @@ enum OTF_ReaderFlag
     OTF_READ_FULL,
     OTF_READ_SCRIPTS,
     OTF_READ_FEATURES,
-    OTF_READ_MAX,
+    OTF_READ_MAX
   };
 
 struct _OTF_TableInfo;
@@ -2898,8 +2898,12 @@ OTF_get_features (OTF *otf, int gsubp)
   if (! table_info->reader)
     return -1;
   if (! table_info->stream)
-    /* Already fully loaded.  */
-    return 0;
+    {
+      if (*table_info->address)
+       /* Already fully loaded.  */
+       return 0;
+      return -1;
+    }
 
   address = (*table_info->reader) (otf, table_info, OTF_READ_FEATURES);
   if (! address)