From bf8ca05df6ea14c8cc7d39a799efce8bc5d0b93f Mon Sep 17 00:00:00 2001 From: KONNO Kazuhiro Date: Tue, 17 Sep 2024 16:02:31 +0900 Subject: [PATCH] Fix "storing the address of local variable" in trcmain.c This commit fixes a build error with runtime/rastrace/trcmain.c. Fixes: #20171 Signed-off-by: KONNO Kazuhiro --- runtime/rastrace/trcmain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/rastrace/trcmain.c b/runtime/rastrace/trcmain.c index 95d9ce89e1c..58e6025504c 100644 --- a/runtime/rastrace/trcmain.c +++ b/runtime/rastrace/trcmain.c @@ -1053,6 +1053,7 @@ initializeTrace(UtThreadData **thr, void **gbl, } else { /* the old utGlobal is still in use */ UT_DBGOUT(1, (" Error, utGlobal already in use.\n")); + *thr = NULL; return OMR_ERROR_INTERNAL; } }