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.
1 parent b1531c7 commit b71c718Copy full SHA for b71c718
1 file changed
rmw_microxrcedds_c/src/rmw_wait.c
@@ -44,7 +44,7 @@ rmw_wait(
44
int32_t i32;
45
} timeout;
46
47
- if (rmw_time_equal(*wait_timeout, (rmw_time_t)RMW_DURATION_INFINITE)) {
+ if (NULL == wait_timeout || rmw_time_equal(*wait_timeout, (rmw_time_t)RMW_DURATION_INFINITE)) {
48
timeout.i32 = UXR_TIMEOUT_INF;
49
} else {
50
timeout.i64 = rmw_time_total_nsec(*wait_timeout) / 1000000ULL;
0 commit comments