Skip to content

Commit

Permalink
fix: remove isspace function call for parser(#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored Aug 23, 2023
1 parent d520e5a commit 3ffc427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/yaml_output_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ void write_yaml_from_struct_3 (char *yamlname, int asize, struct fmsyamloutkeys

// trim any trailing whitespace
int ws_ind = strlen(yamlname)-1;
while(isspace(*(yamlname+ws_ind))) ws_ind--;
while(*(yamlname+ws_ind) == ' ') ws_ind--;
if( ws_ind != strlen(yamlname)-1) yamlname[ws_ind+1] = '\0';

/* open the yaml output file. Only 1 core should do this */
Expand Down

0 comments on commit 3ffc427

Please sign in to comment.