Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LDIF 0.54 KB | None | 0 0
  1. diff --git a/plugins/experimental/cache_promote/cache_promote.cc b/plugins/experimental/cache_promote/cache_promote.cc
  2. index f60a9e374..3128bad53 100644
  3. --- a/plugins/experimental/cache_promote/cache_promote.cc
  4. +++ b/plugins/experimental/cache_promote/cache_promote.cc
  5. @@ -152,7 +152,9 @@ public:
  6.    operator=(const LRUHash &h)
  7.    {
  8.      TSDebug(PLUGIN_NAME, "copying an LRUHash object");
  9. -    memcpy(_hash, h._hash, sizeof(_hash));
  10. +    if (this != &h) {
  11. +      memcpy(_hash, h._hash, sizeof(_hash));
  12. +    }
  13.      return *this;
  14.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement