Delete problematic assert in rmw_init() (#265)
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This commit is contained in:
parent
26b69c70fe
commit
c8b34e3ddb
1 changed files with 0 additions and 1 deletions
|
@ -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;});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue