eina_value_stringshare: safer copy, to cope copying user-generated structs.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Feb 2012 16:18:47 +0000 (16:18 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Feb 2012 16:18:47 +0000 (16:18 +0000)
commitca0874073866cbaedd68f9084d0ec1fab8f10686
tree160eab1ed70afe6c812e6c460164cec02abcfd14
parent6b4c552c7f24226c5dd71b287ad1ef61249bf752
eina_value_stringshare: safer copy, to cope copying user-generated structs.

array, list, struct and others set() now copies the values. These
values can be created by user, in this case string is just a stack
object and not a real eina_stringshare.

To cope with it, add the string instead of referencing it. Bit slower,
but nicer behavior.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67886 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/eina_value.c