Skip to content

Commit

Permalink
thcrap_configure: fix patch selection on repos without servers
Browse files Browse the repository at this point in the history
  • Loading branch information
brliron committed Dec 8, 2020
1 parent 19f3cad commit 8c08e45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions thcrap_update/src/update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,8 @@ void Update::run(const std::list<const patch_t*>& patchs)

patch_t patch_bootstrap(const patch_desc_t *sel, const repo_t *repo)
{
if (!repo) {
patch_t empty_patch = { };
return empty_patch;
if (!repo || !repo->servers) {
return patch_build(sel);
}

std::string url = repo->servers[0];
Expand Down

0 comments on commit 8c08e45

Please sign in to comment.