mirror of https://github.com/OpenRCT2/OpenRCT2.git
Initialise variables to default values
This commit is contained in:
parent
13640959e5
commit
7d62c70c59
|
@ -199,7 +199,7 @@ namespace Twitch
|
|||
_twitchState = TWITCH_STATE_JOINING;
|
||||
_twitchIdle = false;
|
||||
|
||||
http_request_t request;
|
||||
http_request_t request = { 0 };
|
||||
request.url = url;
|
||||
request.method = HTTP_METHOD_GET;
|
||||
request.body = nullptr;
|
||||
|
@ -276,7 +276,7 @@ namespace Twitch
|
|||
_twitchState = TWITCH_STATE_WAITING;
|
||||
_twitchIdle = false;
|
||||
|
||||
http_request_t request;
|
||||
http_request_t request = { 0 };
|
||||
request.url = url;
|
||||
request.method = HTTP_METHOD_GET;
|
||||
request.body = NULL;
|
||||
|
@ -307,7 +307,7 @@ namespace Twitch
|
|||
_twitchState = TWITCH_STATE_WAITING;
|
||||
_twitchIdle = false;
|
||||
|
||||
http_request_t request;
|
||||
http_request_t request = { 0 };
|
||||
request.url = url;
|
||||
request.method = HTTP_METHOD_GET;
|
||||
request.body = nullptr;
|
||||
|
|
|
@ -765,7 +765,7 @@ sint32 ride_find_track_gap(rct_xy_element *input, rct_xy_element *output)
|
|||
{
|
||||
rct_window *w;
|
||||
rct_ride *ride;
|
||||
track_circuit_iterator it, slowIt;
|
||||
track_circuit_iterator it = { 0 }, slowIt;
|
||||
sint32 rideIndex;
|
||||
|
||||
assert(map_element_get_type(input->element) == MAP_ELEMENT_TYPE_TRACK);
|
||||
|
@ -5194,7 +5194,7 @@ static sint32 ride_is_valid_for_test(sint32 rideIndex, sint32 goingToBeOpen, sin
|
|||
{
|
||||
sint32 stationIndex;
|
||||
rct_ride *ride;
|
||||
rct_xy_element trackElement, problematicTrackElement;
|
||||
rct_xy_element trackElement, problematicTrackElement = { 0 };
|
||||
|
||||
ride = get_ride(rideIndex);
|
||||
if (ride->type == RIDE_TYPE_NULL)
|
||||
|
@ -5323,7 +5323,7 @@ static sint32 ride_is_valid_for_open(sint32 rideIndex, sint32 goingToBeOpen, sin
|
|||
{
|
||||
sint32 stationIndex;
|
||||
rct_ride *ride;
|
||||
rct_xy_element trackElement, problematicTrackElement;
|
||||
rct_xy_element trackElement, problematicTrackElement = { 0 };
|
||||
|
||||
ride = get_ride(rideIndex);
|
||||
|
||||
|
|
|
@ -702,7 +702,7 @@ static void fetch_servers()
|
|||
sort_servers();
|
||||
SDL_UnlockMutex(_mutex);
|
||||
|
||||
http_request_t request;
|
||||
http_request_t request = { 0 };
|
||||
request.url = masterServerUrl;
|
||||
request.method = HTTP_METHOD_GET;
|
||||
request.body = NULL;
|
||||
|
|
Loading…
Reference in New Issue