eina_value_stringshare: safer copy, to cope copying user-generated structs.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Mon, 13 Feb 2012 16:18:47 +0000 (16:18 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Mon, 13 Feb 2012 16:18:47 +0000 (16:18 +0000)
commit75839f61a5ddf6aff3838abb451eb4c7b89bb132
treecc8c8d41de20c5ade227890cdb984112af8594f3
parente669719714443ac7c51b732465a00005fcbf20e3
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.

SVN revision: 67886
legacy/eina/src/lib/eina_value.c