{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/5712","repository_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2","labels_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/5712/labels{/name}","comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/5712/comments","events_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/5712/events","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/5712","id":238550180,"number":5712,"title":"Check for file existence before releasing config in config_open()","user":{"login":"rwjuk","id":16639257,"avatar_url":"https://avatars0.githubusercontent.com/u/16639257?v=3","gravatar_id":"","url":"https://api.github.com/users/rwjuk","html_url":"https://github.com/rwjuk","followers_url":"https://api.github.com/users/rwjuk/followers","following_url":"https://api.github.com/users/rwjuk/following{/other_user}","gists_url":"https://api.github.com/users/rwjuk/gists{/gist_id}","starred_url":"https://api.github.com/users/rwjuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwjuk/subscriptions","organizations_url":"https://api.github.com/users/rwjuk/orgs","repos_url":"https://api.github.com/users/rwjuk/repos","events_url":"https://api.github.com/users/rwjuk/events{/privacy}","received_events_url":"https://api.github.com/users/rwjuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-26T13:52:17Z","updated_at":"2017-06-26T14:05:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/5712","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/5712","diff_url":"https://github.com/OpenRCT2/OpenRCT2/pull/5712.diff","patch_url":"https://github.com/OpenRCT2/OpenRCT2/pull/5712.patch"},"body":"This change makes `config_open()` check that the target file actually exists before releasing the existing config.\r\n\r\nWithout this guard, the game would crash on opening the server list window on first start, as config would be cleared and not set back to defaults, leading to `gConfigNetwork.player_name` being `NULL`. This `NULL` was used in a `strcpy()` thus... boom."},"comment":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/comments/311069175","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/5712#issuecomment-311069175","issue_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/5712","id":311069175,"user":{"login":"rwjuk","id":16639257,"avatar_url":"https://avatars0.githubusercontent.com/u/16639257?v=3","gravatar_id":"","url":"https://api.github.com/users/rwjuk","html_url":"https://github.com/rwjuk","followers_url":"https://api.github.com/users/rwjuk/followers","following_url":"https://api.github.com/users/rwjuk/following{/other_user}","gists_url":"https://api.github.com/users/rwjuk/gists{/gist_id}","starred_url":"https://api.github.com/users/rwjuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwjuk/subscriptions","organizations_url":"https://api.github.com/users/rwjuk/orgs","repos_url":"https://api.github.com/users/rwjuk/repos","events_url":"https://api.github.com/users/rwjuk/events{/privacy}","received_events_url":"https://api.github.com/users/rwjuk/received_events","type":"User","site_admin":false},"created_at":"2017-06-26T14:05:38Z","updated_at":"2017-06-26T14:05:38Z","body":"@IntelOrca Noted, changed."}}
{"actor":{"display_login":"rwjuk"}}