bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fea9fbec986260b21bc763a56dd3442eee3dec3a

commit fea9fbec986260b21bc763a56dd3442eee3dec3a
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Mon Oct 21 15:51:28 2019 -0400

    tests/elm: make argv a static char so it never goes out of scope and crashes
    
    Reviewed-by: Cedric BAIL <cedric.b...@free.fr>
    Differential Revision: https://phab.enlightenment.org/D10511
---
 src/tests/elementary/suite_helpers.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/tests/elementary/suite_helpers.c 
b/src/tests/elementary/suite_helpers.c
index 9753d25bd8..0840f13da7 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -24,17 +24,16 @@ Eina_Bool abort_on_warnings = EINA_FALSE;
 
 void elm_test_init(TCase *tc);
 
+static char *args[] = { "exe" };
+
 SUITE_INIT(elm)
 {
-   char *args[] = { "exe" };
    ck_assert_int_eq(elm_init(1, args), 1);
 }
 
 void
 _elm2_suite_init(void)
 {
-   char *args[] = { "exe" };
-
    if (getpid() != main_pid)
      {
         if (abort_on_warnings)

-- 


Reply via email to