rosalina/gdb/server: Prevent potential null dereference case

While unlikely to commonly occur, this is a trivially avoidable case.
This commit is contained in:
Lioncash 2019-08-13 02:54:09 -04:00
parent a2e46919c1
commit 7e14c83bdd

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;
}