[pygobject/invoke-rewrite] pass in the address of the gerror, not the gerror itself



commit d3ee40b36b1718e6fb4544dbe07e291138ea1eb9
Author: John (J5) Palmieri <johnp redhat com>
Date:   Wed Jun 29 18:14:40 2011 -0400

    pass in the address of the gerror, not the gerror itself

 gi/pygi-argument.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c
index ab87a74..7d97567 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -1766,7 +1766,7 @@ _pygi_argument_to_object (GIArgument  *arg,
             break;
         }
         case GI_TYPE_TAG_ERROR:
-             if (arg->v_pointer != NULL && pyglib_error_check (arg->v_pointer)) {
+             if (pyglib_error_check (&arg->v_pointer)) {
                  PyObject *err_type;
                  PyObject *err_value;
                  PyObject *err_trace;



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