[json-glib] gvariant: Pass NULL down the chain for *signature



commit 992d966572e3e498031578558ac307d0f4909246
Author: Rob Taylor <rob taylor codethink co uk>
Date:   Tue Mar 15 09:09:11 2011 +0000

    gvariant: Pass NULL down the chain for *signature
    
    Some small internal change from passing the signature to a pointer to
    the signature down the call chain caused all the checks for
    signature==NULL to fail.
    
    Signed-off-by: Emmanuele Bassi <ebassi linux intel com>

 json-glib/json-gvariant.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/json-glib/json-gvariant.c b/json-glib/json-gvariant.c
index 5f8bae6..efb86c1 100644
--- a/json-glib/json-gvariant.c
+++ b/json-glib/json-gvariant.c
@@ -1246,7 +1246,7 @@ json_gvariant_deserialize (JsonNode     *json_node,
       return NULL;
     }
 
-  return json_to_gvariant_recurse (json_node, &signature, error);
+  return json_to_gvariant_recurse (json_node, signature ? &signature : NULL, error);
 }
 
 /**



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