Skip to content

Commit

Permalink
fix issue of PSL pointer to data conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadRaziei committed Nov 10, 2023
1 parent bcb92c4 commit 00f419b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/urlparser_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ URL::PSL initiate_static_psl() {
}
URL::PSL TLD::Host::Impl::psl = initiate_static_psl();
#else
std::unique_ptr<URL::PSL> TLD::Host::Impl::psl =
std::make_unique<URL::PSL>(URL::PSL::fromString(""));
URL::PSL TLD::Host::Impl::psl = URL::PSL::fromString("");
#endif

inline void TLD::Host::Impl::loadPslFromPath(const std::string& filepath) {
Expand Down

0 comments on commit 00f419b

Please sign in to comment.