Fix a potential segv in the shared string code.
SVN revision: 11091
This commit is contained in:
parent
a17635a739
commit
7dfc202b7d
|
@ -35,7 +35,7 @@ char *ecore_string_instance(char *string)
|
|||
str->string = strdup(string);
|
||||
str->references = 0;
|
||||
|
||||
ecore_hash_set(ecore_strings, string, str);
|
||||
ecore_hash_set(ecore_strings, str->string, str);
|
||||
}
|
||||
|
||||
str->references++;
|
||||
|
|
Loading…
Reference in New Issue