Fixed gcc-4.9 warning
authorkhizmax <libcds.dev@gmail.com>
Tue, 21 Jul 2015 19:09:49 +0000 (22:09 +0300)
committerkhizmax <libcds.dev@gmail.com>
Tue, 21 Jul 2015 19:09:49 +0000 (22:09 +0300)
cds/intrusive/skip_list_rcu.h

index 43692993ec25f2ae9944f4c4f6a4de7ae605005a..58ac7eda18d3aa7fd4d9c413cb42b8d5558fd5d4 100644 (file)
@@ -1882,7 +1882,7 @@ namespace cds { namespace intrusive {
             CDS_UNUSED( pred );
             assert( gc::is_locked());
 
-            value_type * pFound;
+            value_type * pFound = nullptr;
             position pos;
             if ( do_find_with( key, cds::opt::details::make_comparator_from_less<Less>(),
                 [&pFound](value_type& found, Q const& ) { pFound = &found; }, pos ))