-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add return value checking when invoking c APIs (#41)
During rcl_init, things could fail and result in segfault. In this patch, we check the return code of c function calls and panic in case of error.
- Loading branch information
LIYOU ZHOU
authored
Mar 21, 2023
1 parent
0ed365f
commit 88c16ba
Showing
1 changed file
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters