Skip to content

Commit

Permalink
Merge pull request #1467 from avan989:Fix-1466-address-sanitizer
Browse files Browse the repository at this point in the history
Fix #1466, Fix Address Sanitizer issue in vxworks-console-testrunner
  • Loading branch information
dzbaker committed Jul 15, 2024
2 parents 269a522 + ca022e5 commit 5e41e8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/os/vxworks/src/os-impl-console.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ int32 OS_ConsoleCreate_Impl(const OS_object_token_t *token)
int32 return_code;
OS_console_internal_record_t * console;

local = OS_OBJECT_TABLE_GET(OS_impl_console_table, *token);
console = OS_OBJECT_TABLE_GET(OS_console_table, *token);

if (OS_ObjectIndexFromToken(token) == 0)
{
return_code = OS_SUCCESS;

local = OS_OBJECT_TABLE_GET(OS_impl_console_table, *token);
console = OS_OBJECT_TABLE_GET(OS_console_table, *token);

if (console->IsAsync)
{
OS_DEBUG("%s(): Starting Async Console Handler\n", __func__);
Expand Down

0 comments on commit 5e41e8a

Please sign in to comment.