Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/plugins/experimental/cache_promote/cache_promote.cc b/plugins/experimental/cache_promote/cache_promote.cc
- index f60a9e374..3128bad53 100644
- --- a/plugins/experimental/cache_promote/cache_promote.cc
- +++ b/plugins/experimental/cache_promote/cache_promote.cc
- @@ -152,7 +152,9 @@ public:
- operator=(const LRUHash &h)
- {
- TSDebug(PLUGIN_NAME, "copying an LRUHash object");
- - memcpy(_hash, h._hash, sizeof(_hash));
- + if (this != &h) {
- + memcpy(_hash, h._hash, sizeof(_hash));
- + }
- return *this;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement