Merge pull request #1306 from lioncash/null

rosalina/gdb/server: Prevent potential null dereference case
This commit is contained in:
TuxSH 2019-11-05 00:15:07 +00:00 committed by GitHub
commit 1946941340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,9 +136,9 @@ GDBContext *GDB_SelectAvailableContext(GDBServer *server, u16 minPort, u16 maxPo
{
ctx->flags |= GDB_FLAG_SELECTED;
ctx->localPort = port;
ctx->parent = server;
}
ctx->parent = server;
GDB_UnlockAllContexts(server);
return ctx;
}