OTF_driver_gsub_with_log and OTF_driver_gpos_with_log. Show which
features are applied.
(get_features): Fix previous change.
int i, n;
char *str, *p;
- if (! rec->langsys || ! rec->features || ! rec->features[0].on)
+ if (! rec->langsys || ! rec->features)
return NULL;
for (i = n = 0; i < rec->langsys->FeatureCount; i++)
if (rec->features[i].on)
n++;
+ if (n == 0)
+ return NULL;
str = malloc (n * 5);
- for (i = 0, p = str; i < n; i++, p += 5)
+ for (i = 0, p = str; i < rec->langsys->FeatureCount; i++)
if (rec->features[i].on)
{
OTF_tag_name (rec->features[i].tag, p);
p[4] = ',';
+ p += 5;
}
p[-1] = '\0';
return str;