]> granicus.if.org Git - handbrake/commitdiff
hb_dict: convert json null to empty string upon string xform
authorJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 9 Mar 2016 15:23:46 +0000 (08:23 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 9 Mar 2016 15:23:46 +0000 (08:23 -0700)
libhb/hb_dict.c

index bd6e65721d15d906446a13dedc80d501356155ad..cc0ee99fed3c01e029b888a4407568910c8a50af 100644 (file)
@@ -105,7 +105,7 @@ static hb_value_t* xform_null(hb_value_type_t type)
         case HB_VALUE_TYPE_DOUBLE:
             return json_real(0.0);
         case HB_VALUE_TYPE_STRING:
-            return json_null();
+            return json_string("");
     }
 }