commit 7a0fce6: [Minor] Fix for old hyperscan
Vsevolod Stakhov
vsevolod at rspamd.com
Thu May 25 13:49:04 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-05-25 14:44:00 +0100
URL: https://github.com/rspamd/rspamd/commit/7a0fce60aee0860ef48b6d8e98d413cf540dcf46 (HEAD -> master)
[Minor] Fix for old hyperscan
---
src/libserver/hyperscan_tools.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/hyperscan_tools.cxx b/src/libserver/hyperscan_tools.cxx
index 7d3a71a5c..8159cbd26 100644
--- a/src/libserver/hyperscan_tools.cxx
+++ b/src/libserver/hyperscan_tools.cxx
@@ -521,7 +521,7 @@ auto load_cached_hs_file(const char *fname, std::int64_t offset = 0) -> tl::expe
ret = hs_shared_from_serialized(hs_cache, std::forward<T>(cached_serialized), offset);
}
#else // defined(HS_MAJOR) && defined(HS_MINOR) && HS_MAJOR >= 5 && HS_MINOR >= 4
- ret = hs_shared_from_serialized(hs_cache, std::forward<T>(cached_serialized), offset);
+ auto ret = hs_shared_from_serialized(hs_cache, std::forward<T>(cached_serialized), offset);
#endif // defined(HS_MAJOR) && defined(HS_MINOR) && HS_MAJOR >= 5 && HS_MINOR >= 4
// Add serialized file to cache merely if we have successfully loaded the actual db
if (ret.has_value()) {
More information about the Commits
mailing list