ajwillia-ms pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=f7396703c5a5b27e396312466498de302537a0c2
commit f7396703c5a5b27e396312466498de302537a0c2 Author: Andy Williams <[email protected]> Date: Tue Aug 2 23:23:31 2016 +0100 Fix text check in Elm_Code T4264 An incorrect assumption in how unused memory may be initialised @fix --- src/tests/elementary/elm_code_test_text.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tests/elementary/elm_code_test_text.c b/src/tests/elementary/elm_code_test_text.c index 934b98b..51dbf8d 100644 --- a/src/tests/elementary/elm_code_test_text.c +++ b/src/tests/elementary/elm_code_test_text.c @@ -14,13 +14,18 @@ START_TEST (elm_code_text_get_test) Elm_Code_File *file; Elm_Code_Line *line; + const char *str; + int len; + elm_init(1, NULL); code = elm_code_create(); file = elm_code_file_new(code); elm_code_file_line_append(file, "test", 4, NULL); line = elm_code_file_line_get(file, 1); - ck_assert_str_eq("test", elm_code_line_text_get(line, NULL)); + str = elm_code_line_text_get(line, &len); + + ck_assert_strn_eq("test", str, len); elm_shutdown(); } END_TEST --
