[pygobject] Cosmetic fix to last patch



commit 73a83186329ede7702501d5bc49df269482461e4
Author: Paolo Borelli <pborelli gnome org>
Date:   Wed Jan 30 17:48:12 2013 +0100

    Cosmetic fix to last patch

 gi/pygi-argument.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c
index 0933e89..2935bc6 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -476,10 +476,13 @@ _pygi_g_type_info_check_object (GITypeInfo *type_info,
                               PyString_AS_STRING (upper_str));
 #else
                 {
-                    PyObject *lower_pybytes_obj = PyUnicode_AsUTF8String (lower_str);
+                    PyObject *lower_pybytes_obj;
                     PyObject *upper_pybytes_obj;
-                    if (!lower_pybytes_obj)
+
+                    lower_pybytes_obj = PyUnicode_AsUTF8String (lower_str);
+                    if (!lower_pybytes_obj) {
                         goto utf8_fail;
+                    }
 
                     upper_pybytes_obj = PyUnicode_AsUTF8String (upper_str);
                     if (!upper_pybytes_obj) {



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