From ff93313b905f99c021426a8fc2dd0649003cc03a Mon Sep 17 00:00:00 2001 From: Robert Sipka Date: Fri, 15 Apr 2016 10:22:41 +0200 Subject: [PATCH] Set the correct pointer value in 'ecma_copy_ecma_string' function. JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com --- jerry-core/ecma/base/ecma-helpers-string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jerry-core/ecma/base/ecma-helpers-string.c b/jerry-core/ecma/base/ecma-helpers-string.c index 7c1f7a9f2e..865c4fcbc1 100644 --- a/jerry-core/ecma/base/ecma-helpers-string.c +++ b/jerry-core/ecma/base/ecma-helpers-string.c @@ -422,7 +422,7 @@ ecma_copy_ecma_string (ecma_string_t *string_desc_p) /**< string descriptor */ ecma_string_heap_header_t *new_data_p = (ecma_string_heap_header_t *) mem_heap_alloc_block (data_size); memcpy (new_data_p, data_p, data_p->size + sizeof (ecma_string_heap_header_t)); - ECMA_SET_NON_NULL_POINTER (new_str_p->u.collection_cp, data_p); + ECMA_SET_NON_NULL_POINTER (new_str_p->u.collection_cp, new_data_p); break; }