{"action":"closed","number":24,"pull_request":{"url":"https://api.github.com/repos/baylej/tmx/pulls/24","id":63736152,"html_url":"https://github.com/baylej/tmx/pull/24","diff_url":"https://github.com/baylej/tmx/pull/24.diff","patch_url":"https://github.com/baylej/tmx/pull/24.patch","issue_url":"https://api.github.com/repos/baylej/tmx/issues/24","number":24,"state":"closed","locked":false,"title":"SDL: Fixed segfault for maps with empty tiles.","user":{"login":"ablondin","id":398340,"avatar_url":"https://avatars.githubusercontent.com/u/398340?v=3","gravatar_id":"","url":"https://api.github.com/users/ablondin","html_url":"https://github.com/ablondin","followers_url":"https://api.github.com/users/ablondin/followers","following_url":"https://api.github.com/users/ablondin/following{/other_user}","gists_url":"https://api.github.com/users/ablondin/gists{/gist_id}","starred_url":"https://api.github.com/users/ablondin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ablondin/subscriptions","organizations_url":"https://api.github.com/users/ablondin/orgs","repos_url":"https://api.github.com/users/ablondin/repos","events_url":"https://api.github.com/users/ablondin/events{/privacy}","received_events_url":"https://api.github.com/users/ablondin/received_events","type":"User","site_admin":false},"body":"Hi!\r\n\r\nWhenever I tried the included SDL example with a map having empty tiles, my application crashed. By looking more closely at the code, I noticed that the example does not take into account maps having empty tiles.\r\n\r\nSince it's often hard to detect the origin of segfaults, I thought it would be a good idea to share the correction.\r\n\r\nAny comments welcome!","created_at":"2016-03-22T15:10:46Z","updated_at":"2016-03-22T20:57:55Z","closed_at":"2016-03-22T20:57:55Z","merged_at":"2016-03-22T20:57:55Z","merge_commit_sha":"a4fb241762c05080db0289644d93280a697fdba0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/baylej/tmx/pulls/24/commits","review_comments_url":"https://api.github.com/repos/baylej/tmx/pulls/24/comments","review_comment_url":"https://api.github.com/repos/baylej/tmx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/baylej/tmx/issues/24/comments","statuses_url":"https://api.github.com/repos/baylej/tmx/statuses/29037fda90852ff090c791fe481278552e86a349","head":{"label":"ablondin:sdl-example","ref":"sdl-example","sha":"29037fda90852ff090c791fe481278552e86a349","user":{"login":"ablondin","id":398340,"avatar_url":"https://avatars.githubusercontent.com/u/398340?v=3","gravatar_id":"","url":"https://api.github.com/users/ablondin","html_url":"https://github.com/ablondin","followers_url":"https://api.github.com/users/ablondin/followers","following_url":"https://api.github.com/users/ablondin/following{/other_user}","gists_url":"https://api.github.com/users/ablondin/gists{/gist_id}","starred_url":"https://api.github.com/users/ablondin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ablondin/subscriptions","organizations_url":"https://api.github.com/users/ablondin/orgs","repos_url":"https://api.github.com/users/ablondin/repos","events_url":"https://api.github.com/users/ablondin/events{/privacy}","received_events_url":"https://api.github.com/users/ablondin/received_events","type":"User","site_admin":false},"repo":{"id":54484131,"name":"tmx","full_name":"ablondin/tmx","owner":{"login":"ablondin","id":398340,"avatar_url":"https://avatars.githubusercontent.com/u/398340?v=3","gravatar_id":"","url":"https://api.github.com/users/ablondin","html_url":"https://github.com/ablondin","followers_url":"https://api.github.com/users/ablondin/followers","following_url":"https://api.github.com/users/ablondin/following{/other_user}","gists_url":"https://api.github.com/users/ablondin/gists{/gist_id}","starred_url":"https://api.github.com/users/ablondin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ablondin/subscriptions","organizations_url":"https://api.github.com/users/ablondin/orgs","repos_url":"https://api.github.com/users/ablondin/repos","events_url":"https://api.github.com/users/ablondin/events{/privacy}","received_events_url":"https://api.github.com/users/ablondin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ablondin/tmx","description":"C tmx map loader","fork":true,"url":"https://api.github.com/repos/ablondin/tmx","forks_url":"https://api.github.com/repos/ablondin/tmx/forks","keys_url":"https://api.github.com/repos/ablondin/tmx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ablondin/tmx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ablondin/tmx/teams","hooks_url":"https://api.github.com/repos/ablondin/tmx/hooks","issue_events_url":"https://api.github.com/repos/ablondin/tmx/issues/events{/number}","events_url":"https://api.github.com/repos/ablondin/tmx/events","assignees_url":"https://api.github.com/repos/ablondin/tmx/assignees{/user}","branches_url":"https://api.github.com/repos/ablondin/tmx/branches{/branch}","tags_url":"https://api.github.com/repos/ablondin/tmx/tags","blobs_url":"https://api.github.com/repos/ablondin/tmx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ablondin/tmx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ablondin/tmx/git/refs{/sha}","trees_url":"https://api.github.com/repos/ablondin/tmx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ablondin/tmx/statuses/{sha}","languages_url":"https://api.github.com/repos/ablondin/tmx/languages","stargazers_url":"https://api.github.com/repos/ablondin/tmx/stargazers","contributors_url":"https://api.github.com/repos/ablondin/tmx/contributors","subscribers_url":"https://api.github.com/repos/ablondin/tmx/subscribers","subscription_url":"https://api.github.com/repos/ablondin/tmx/subscription","commits_url":"https://api.github.com/repos/ablondin/tmx/commits{/sha}","git_commits_url":"https://api.github.com/repos/ablondin/tmx/git/commits{/sha}","comments_url":"https://api.github.com/repos/ablondin/tmx/comments{/number}","issue_comment_url":"https://api.github.com/repos/ablondin/tmx/issues/comments{/number}","contents_url":"https://api.github.com/repos/ablondin/tmx/contents/{+path}","compare_url":"https://api.github.com/repos/ablondin/tmx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ablondin/tmx/merges","archive_url":"https://api.github.com/repos/ablondin/tmx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ablondin/tmx/downloads","issues_url":"https://api.github.com/repos/ablondin/tmx/issues{/number}","pulls_url":"https://api.github.com/repos/ablondin/tmx/pulls{/number}","milestones_url":"https://api.github.com/repos/ablondin/tmx/milestones{/number}","notifications_url":"https://api.github.com/repos/ablondin/tmx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ablondin/tmx/labels{/name}","releases_url":"https://api.github.com/repos/ablondin/tmx/releases{/id}","deployments_url":"https://api.github.com/repos/ablondin/tmx/deployments","created_at":"2016-03-22T14:58:22Z","updated_at":"2016-03-22T14:58:23Z","pushed_at":"2016-03-22T15:06:22Z","git_url":"git://github.com/ablondin/tmx.git","ssh_url":"git@github.com:ablondin/tmx.git","clone_url":"https://github.com/ablondin/tmx.git","svn_url":"https://github.com/ablondin/tmx","homepage":"https://github.com/baylej/tmx/wiki","size":392,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"baylej:master","ref":"master","sha":"e57948217a81b2de997c3cdae3d45c0999ab7fd3","user":{"login":"baylej","id":3799637,"avatar_url":"https://avatars.githubusercontent.com/u/3799637?v=3","gravatar_id":"","url":"https://api.github.com/users/baylej","html_url":"https://github.com/baylej","followers_url":"https://api.github.com/users/baylej/followers","following_url":"https://api.github.com/users/baylej/following{/other_user}","gists_url":"https://api.github.com/users/baylej/gists{/gist_id}","starred_url":"https://api.github.com/users/baylej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baylej/subscriptions","organizations_url":"https://api.github.com/users/baylej/orgs","repos_url":"https://api.github.com/users/baylej/repos","events_url":"https://api.github.com/users/baylej/events{/privacy}","received_events_url":"https://api.github.com/users/baylej/received_events","type":"User","site_admin":false},"repo":{"id":8659490,"name":"tmx","full_name":"baylej/tmx","owner":{"login":"baylej","id":3799637,"avatar_url":"https://avatars.githubusercontent.com/u/3799637?v=3","gravatar_id":"","url":"https://api.github.com/users/baylej","html_url":"https://github.com/baylej","followers_url":"https://api.github.com/users/baylej/followers","following_url":"https://api.github.com/users/baylej/following{/other_user}","gists_url":"https://api.github.com/users/baylej/gists{/gist_id}","starred_url":"https://api.github.com/users/baylej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baylej/subscriptions","organizations_url":"https://api.github.com/users/baylej/orgs","repos_url":"https://api.github.com/users/baylej/repos","events_url":"https://api.github.com/users/baylej/events{/privacy}","received_events_url":"https://api.github.com/users/baylej/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/baylej/tmx","description":"C tmx map loader","fork":false,"url":"https://api.github.com/repos/baylej/tmx","forks_url":"https://api.github.com/repos/baylej/tmx/forks","keys_url":"https://api.github.com/repos/baylej/tmx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/baylej/tmx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/baylej/tmx/teams","hooks_url":"https://api.github.com/repos/baylej/tmx/hooks","issue_events_url":"https://api.github.com/repos/baylej/tmx/issues/events{/number}","events_url":"https://api.github.com/repos/baylej/tmx/events","assignees_url":"https://api.github.com/repos/baylej/tmx/assignees{/user}","branches_url":"https://api.github.com/repos/baylej/tmx/branches{/branch}","tags_url":"https://api.github.com/repos/baylej/tmx/tags","blobs_url":"https://api.github.com/repos/baylej/tmx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/baylej/tmx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/baylej/tmx/git/refs{/sha}","trees_url":"https://api.github.com/repos/baylej/tmx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/baylej/tmx/statuses/{sha}","languages_url":"https://api.github.com/repos/baylej/tmx/languages","stargazers_url":"https://api.github.com/repos/baylej/tmx/stargazers","contributors_url":"https://api.github.com/repos/baylej/tmx/contributors","subscribers_url":"https://api.github.com/repos/baylej/tmx/subscribers","subscription_url":"https://api.github.com/repos/baylej/tmx/subscription","commits_url":"https://api.github.com/repos/baylej/tmx/commits{/sha}","git_commits_url":"https://api.github.com/repos/baylej/tmx/git/commits{/sha}","comments_url":"https://api.github.com/repos/baylej/tmx/comments{/number}","issue_comment_url":"https://api.github.com/repos/baylej/tmx/issues/comments{/number}","contents_url":"https://api.github.com/repos/baylej/tmx/contents/{+path}","compare_url":"https://api.github.com/repos/baylej/tmx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/baylej/tmx/merges","archive_url":"https://api.github.com/repos/baylej/tmx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/baylej/tmx/downloads","issues_url":"https://api.github.com/repos/baylej/tmx/issues{/number}","pulls_url":"https://api.github.com/repos/baylej/tmx/pulls{/number}","milestones_url":"https://api.github.com/repos/baylej/tmx/milestones{/number}","notifications_url":"https://api.github.com/repos/baylej/tmx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/baylej/tmx/labels{/name}","releases_url":"https://api.github.com/repos/baylej/tmx/releases{/id}","deployments_url":"https://api.github.com/repos/baylej/tmx/deployments","created_at":"2013-03-08T20:44:05Z","updated_at":"2016-03-17T06:49:46Z","pushed_at":"2016-03-22T20:57:55Z","git_url":"git://github.com/baylej/tmx.git","ssh_url":"git@github.com:baylej/tmx.git","clone_url":"https://github.com/baylej/tmx.git","svn_url":"https://github.com/baylej/tmx","homepage":"https://github.com/baylej/tmx/wiki","size":437,"stargazers_count":32,"watchers_count":32,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":0,"forks":17,"open_issues":0,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/baylej/tmx/pulls/24"},"html":{"href":"https://github.com/baylej/tmx/pull/24"},"issue":{"href":"https://api.github.com/repos/baylej/tmx/issues/24"},"comments":{"href":"https://api.github.com/repos/baylej/tmx/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/baylej/tmx/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/baylej/tmx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/baylej/tmx/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/baylej/tmx/statuses/29037fda90852ff090c791fe481278552e86a349"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"baylej","id":3799637,"avatar_url":"https://avatars.githubusercontent.com/u/3799637?v=3","gravatar_id":"","url":"https://api.github.com/users/baylej","html_url":"https://github.com/baylej","followers_url":"https://api.github.com/users/baylej/followers","following_url":"https://api.github.com/users/baylej/following{/other_user}","gists_url":"https://api.github.com/users/baylej/gists{/gist_id}","starred_url":"https://api.github.com/users/baylej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baylej/subscriptions","organizations_url":"https://api.github.com/users/baylej/orgs","repos_url":"https://api.github.com/users/baylej/repos","events_url":"https://api.github.com/users/baylej/events{/privacy}","received_events_url":"https://api.github.com/users/baylej/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":16,"deletions":14,"changed_files":1}}