[jscore] Fix breaking from switch in marshalling code
authorKalle Vahlman <kalle.vahlman@movial.com>
Fri, 8 Jan 2010 08:30:51 +0000 (10:30 +0200)
committerKalle Vahlman <kalle.vahlman@movial.com>
Fri, 8 Jan 2010 08:30:51 +0000 (10:30 +0200)
jscorebus/jscorebus-marshal.c

index 0516550..31491b0 100644 (file)
@@ -412,6 +412,11 @@ jsvalue_append_basic(JSContextRef context,
           }
         }
 
+        if (value != NULL)
+        {
+          break;
+        }
+
         if (jsvalue_typeof(context, jsvalue, "DBusObjectPath"))
         {
           strvalue = string_from_jsvalue(context,