From ab6d7772204e2a9f9ec4ee69f426d9557ebac598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsolt=20Borb=C3=A9ly?= Date: Fri, 4 Dec 2015 14:48:47 +0100 Subject: [PATCH] Fix unittests build, when all-in-one is enabled. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com --- .../ecma/builtin-objects/ecma-builtin-string-prototype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.cpp b/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.cpp index 0fb00a3cd..be0e10ab4 100644 --- a/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.cpp +++ b/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.cpp @@ -758,7 +758,7 @@ ecma_builtin_string_prototype_object_replace_match (ecma_builtin_replace_search_ ecma_string_t *search_string_p = ecma_get_string_from_value (context_p->regexp_or_search_string); ecma_string_t *input_string_p = ecma_get_string_from_value (context_p->input_string); - ecma_length_t index_of; + ecma_length_t index_of = 0; if (ecma_builtin_helper_string_find_index (input_string_p, search_string_p, true, 0, &index_of)) { ecma_value_t arguments_list_p[1] = { context_p->regexp_or_search_string };