Delete problematic assert in rmw_init() (#265)

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This commit is contained in:
Ivan Santiago Paunovic 2020-11-03 12:46:30 -03:00 committed by GitHub
parent 26b69c70fe
commit c8b34e3ddb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1153,7 +1153,6 @@ extern "C" rmw_ret_t rmw_init(const rmw_init_options_t * options, rmw_context_t
} }
const rmw_context_t zero_context = rmw_get_zero_initialized_context(); const rmw_context_t zero_context = rmw_get_zero_initialized_context();
assert(0 == std::memcmp(context, &zero_context, sizeof(rmw_context_t)));
auto restore_context = rcpputils::make_scope_exit( auto restore_context = rcpputils::make_scope_exit(
[context, &zero_context]() {*context = zero_context;}); [context, &zero_context]() {*context = zero_context;});