Branch: Tag:

2012-05-11

2012-05-11 00:23:04 by Martin Stjernholm <mast@lysator.liu.se>

Ensure that the empty value is copied when it may later be modified
destructively.

Only applicable to mappings, in practice. Fixes [bug 6342 (#6342)].

Rev: server/etc/modules/RXML.pmod/module.pmod:1.431
Rev: server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:1.110

1390:    <equal>17</equal>   </test>    + <test> +  <rxml type="array"> +  <set variable="var.foo" type="mapping"/> +  <set variable="var.foo.a" value="1"/> +  <set variable="var.bar" type="mapping"/> +  <set variable="var.bar.c" value="3"/> +  &var.foo; +  &var.bar; +  <value type="mapping"/> +  </rxml> +  <equal>({(["a": "1"]), (["c": "3"]), ([])})</equal> + </test>    -  +    <!-- ............................................................ -->   <comment>String number test</comment>   <test>