aboutsummaryrefslogtreecommitdiff
path: root/freetype/src/cff/cffdrivr.c
diff options
context:
space:
mode:
Diffstat (limited to 'freetype/src/cff/cffdrivr.c')
-rw-r--r--freetype/src/cff/cffdrivr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/freetype/src/cff/cffdrivr.c b/freetype/src/cff/cffdrivr.c
index 217adf2f1..dad0b65d8 100644
--- a/freetype/src/cff/cffdrivr.c
+++ b/freetype/src/cff/cffdrivr.c
@@ -621,14 +621,15 @@
{
FT_Module sfnt;
FT_Module_Interface result;
- FT_Library library = driver->library;
- FT_UNUSED(library);
result = ft_service_list_lookup( FT_CFF_SERVICES_GET, module_interface );
if ( result != NULL )
return result;
+ if ( !driver )
+ return NULL;
+
/* we pass our request to the `sfnt' module */
sfnt = FT_Get_Module( driver->library, "sfnt" );