We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nullptr
hash_buffer_impl::find_element_ref_with_key
1 parent 9f3ae90 commit 8652376Copy full SHA for 8652376
include/oneapi/tbb/detail/_flow_graph_tagged_buffer_impl.h
@@ -1,5 +1,5 @@
1
/*
2
- Copyright (c) 2005-2024 Intel Corporation
+ Copyright (c) 2005-2025 Intel Corporation
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
@@ -303,7 +303,7 @@ class hash_buffer_impl : public HashCompare {
303
bool find_ref_with_key(const Knoref& k, pointer_type &v) {
304
element_type* element_ptr = nullptr;
305
bool res = find_element_ref_with_key(k, element_ptr);
306
- v = element_ptr->get_value_ptr();
+ if(res) v = element_ptr->get_value_ptr();
307
return res;
308
}
309
0 commit comments