Delete stray g_return_if_fail
authorColin Walters <walters@verbum.org>
Thu, 11 Feb 2010 22:49:51 +0000 (17:49 -0500)
committerColin Walters <walters@verbum.org>
Thu, 11 Feb 2010 22:49:51 +0000 (17:49 -0500)
If g_alloca failed we're pretty much screwed, and g_return_if_fail
is for API entry points, not internal assertions.

girepository/ginvoke.c

index ff04950..b3333f8 100644 (file)
@@ -425,7 +425,6 @@ gi_cclosure_marshal_generic (GClosure *closure,
   if (ffi_prep_cif (&cif, FFI_DEFAULT_ABI, n_args, rtype, atypes) != FFI_OK)
     return;
 
-  g_return_if_fail (rvalue != NULL);
   ffi_call (&cif, marshal_data ? marshal_data : cc->callback, rvalue, args);
 
   if (return_gvalue && G_VALUE_TYPE (return_gvalue))