[gobject-introspection] Delete stray g_return_if_fail



commit b9c2a93b383928dca7e4f210dec4deb67b0c33ec
Author: Colin Walters <walters verbum org>
Date:   Thu Feb 11 17:49:51 2010 -0500

    Delete stray g_return_if_fail
    
    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 |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/girepository/ginvoke.c b/girepository/ginvoke.c
index ff04950..b3333f8 100644
--- a/girepository/ginvoke.c
+++ b/girepository/ginvoke.c
@@ -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))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]