diff options
Diffstat (limited to 'src/psnames/psmodule.c')
-rw-r--r-- | src/psnames/psmodule.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/psnames/psmodule.c b/src/psnames/psmodule.c index 752869693..2577382ec 100644 --- a/src/psnames/psmodule.c +++ b/src/psnames/psmodule.c @@ -563,7 +563,19 @@ psnames_get_service( FT_Module module, const char* service_id ) { + /* FT_PSCMAPS_SERVICES_GET derefers `library' in PIC mode */ +#ifdef FT_CONFIG_OPTION_PIC + FT_Library library; + + + if ( !module ) + return NULL; + library = module->library; + if ( !library ) + return NULL; +#else FT_UNUSED( module ); +#endif return ft_service_list_lookup( FT_PSCMAPS_SERVICES_GET, service_id ); } |