diff --git a/simgear/io/HTTPRepository.cxx b/simgear/io/HTTPRepository.cxx index 6fd0b30e..52b87498 100644 --- a/simgear/io/HTTPRepository.cxx +++ b/simgear/io/HTTPRepository.cxx @@ -1174,7 +1174,7 @@ HTTPRepository::failure() const void HTTPRepoPrivate::failedToGetRootIndex(HTTPRepository::ResultCode st) { if (st == HTTPRepository::REPO_ERROR_FILE_NOT_FOUND) { - status == HTTPRepository::REPO_ERROR_NOT_FOUND; + status = HTTPRepository::REPO_ERROR_NOT_FOUND; } else { SG_LOG(SG_TERRASYNC, SG_WARN, "Failed to get root of repo:" << baseUrl << " " << st); status = st;