Make string constants const char * const (#2458)

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2018-08-10 21:08:49 +02:00
committed by László Langó
parent 81f37cf134
commit fb35e34801
5 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ vm_get_backtrace (uint32_t max_depth) /**< maximum backtrace depth, 0 = unlimite
if (ecma_string_is_empty (str_p))
{
const char *unknown_str_p = "<unknown>:";
const char * const unknown_str_p = "<unknown>:";
str_p = ecma_new_ecma_string_from_utf8 ((const lit_utf8_byte_t *) unknown_str_p,
(lit_utf8_size_t) strlen (unknown_str_p));
}