From 399fba21249ac7094ac2b3f7ee38d31282837c04 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 11 Jun 2022 14:03:45 +0100 Subject: [PATCH] fix error in prev commit --- libvips/iofuncs/init.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libvips/iofuncs/init.c b/libvips/iofuncs/init.c index 618eabd8..5b6cf91b 100644 --- a/libvips/iofuncs/init.c +++ b/libvips/iofuncs/init.c @@ -1313,8 +1313,13 @@ vips_block_untrusted_set_operation( VipsOperationClass *class, gboolean *state ) { g_assert( VIPS_IS_OPERATION_CLASS( class ) ); - if( class->flags & VIPS_OPERATION_UNTRUSTED ) - vips_operation_block_set( VIPS_OBJECT_CLASS( class ), *state ); + if( class->flags & VIPS_OPERATION_UNTRUSTED ) { + GTypeClass *type_class = (GTypeClass *) class; + GType gtype = type_class->g_type; + const char *name = g_type_name( gtype ); + + vips_operation_block_set( name, *state ); + } return( NULL ); }