summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Langford <wlangfor@gmail.com>2014-09-22 20:11:07 -0400
committerWilliam Langford <wlangfor@gmail.com>2014-09-22 20:14:46 -0400
commitf7a2af70526ab632008bb646d2b0e82f5c1724c9 (patch)
tree45538f39af22cb0b8fd86074731f59fa2a7ff342
parent456bafa82fd4a4154b2697fb36e9b3cdb76e0f92 (diff)
Properly handle when objects cannot be folded
Fix #579.
-rw-r--r--compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 57a26d54..a0046ca0 100644
--- a/compile.c
+++ b/compile.c
@@ -557,6 +557,8 @@ block gen_const_object(block expr) {
break;
}
o = jv_object_set(o, k, v);
+ k = jv_null();
+ v = jv_null();
}
if (!is_const) {
jv_free(o);