Skip to content

Commit

Permalink
Correct code style
Browse files Browse the repository at this point in the history
Signed-off-by: Ada-King <[email protected]>
  • Loading branch information
Ada-King committed Aug 12, 2020
1 parent 2fb4342 commit c65d7e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rcl_yaml_param_parser/src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,8 +1105,8 @@ static void * get_value(
{
errno = 0;
endptr = NULL;
if(strcasecmp(value, ".nan") == 0) {
char *tmp_value = (char *)value;
if (strcasecmp(value, ".nan") == 0) {
char * tmp_value = (char *)value;
strcpy(tmp_value, "nan");
}
dval = strtod(value, &endptr);
Expand Down

0 comments on commit c65d7e1

Please sign in to comment.