From 7dfc202b7d8f02e008a3382eafa029221afd158d Mon Sep 17 00:00:00 2001 From: rbdpngn Date: Thu, 29 Jul 2004 19:31:36 +0000 Subject: [PATCH] Fix a potential segv in the shared string code. SVN revision: 11091 --- legacy/ecore/src/lib/ecore/ecore_strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore/ecore_strings.c b/legacy/ecore/src/lib/ecore/ecore_strings.c index 10ff90de67..1a32bbd8fc 100644 --- a/legacy/ecore/src/lib/ecore/ecore_strings.c +++ b/legacy/ecore/src/lib/ecore/ecore_strings.c @@ -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++;