fix error in prev commit

This commit is contained in:
John Cupitt 2022-06-11 14:03:45 +01:00
parent 8bf90ed44e
commit 399fba2124

View File

@ -1313,8 +1313,13 @@ vips_block_untrusted_set_operation( VipsOperationClass *class, gboolean *state )
{ {
g_assert( VIPS_IS_OPERATION_CLASS( class ) ); g_assert( VIPS_IS_OPERATION_CLASS( class ) );
if( class->flags & VIPS_OPERATION_UNTRUSTED ) if( class->flags & VIPS_OPERATION_UNTRUSTED ) {
vips_operation_block_set( VIPS_OBJECT_CLASS( class ), *state ); 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 ); return( NULL );
} }