* src/base/ftbdf.c (FT_Get_BDF_Property): Check for valid `get_interface'.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
diff --git a/ChangeLog b/ChangeLog
index a1be1a2..387879e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-23 Joe Marcus Clarke <marcus@FreeBSD.org>
+
+ * src/base/ftbdf.c (FT_Get_BDF_Property): Check for valid
+ `get_interface'.
+
2003-04-23 Paul Miller <paulm@profoundeffects.com>
* src/base/ftmac.c (parse_fond): Fix handling of style names.
diff --git a/src/base/ftbdf.c b/src/base/ftbdf.c
index 54e73d4..63e3071 100644
--- a/src/base/ftbdf.c
+++ b/src/base/ftbdf.c
@@ -90,11 +90,15 @@
BDF_GetPropertyFunc func;
- func = (BDF_GetPropertyFunc)driver->root.clazz->get_interface(
- FT_MODULE( driver ), "get_bdf_property" );
- if ( func )
- error = func( face, prop_name, aproperty );
+ if ( driver->root.clazz->get_interface )
+ {
+ func = (BDF_GetPropertyFunc)driver->root.clazz->get_interface(
+ FT_MODULE( driver ), "get_bdf_property" );
+ if ( func )
+ error = func( face, prop_name, aproperty );
+ }
}
+
return error;
}