]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1852] default ParkingInfo constructor sets refcount_ to 0
authorRazvan Becheriu <razvan@isc.org>
Fri, 21 May 2021 09:54:34 +0000 (12:54 +0300)
committerTomek Mrugalski <tomek@isc.org>
Fri, 21 May 2021 12:42:32 +0000 (12:42 +0000)
src/lib/hooks/parking_lots.h

index d736657b6f5ad07a5731755d1bcf3e6613d126ba..67714fd42fb976e662eec3d9676a4d1d743c9780 100644 (file)
@@ -209,14 +209,19 @@ public:
 
     /// @brief Holds information about parked object.
     struct ParkingInfo {
-        boost::any parked_object_;               ///< parked object
-        std::function<void()> unpark_callback_;  ///< pointer to the callback
-        int refcount_;                           ///< current reference count
+        /// @brief The parked object.
+        boost::any parked_object_;
+
+        /// @brief The pointer to callback.
+        std::function<void()> unpark_callback_;
+
+        /// @brief The current reference count.
+        int refcount_;
 
         /// @brief Constructor.
         ///
         /// Default constructor.
-        ParkingInfo() {};
+        ParkingInfo() : refcount_(0) {};
 
         /// @brief Constructor.
         ///