Skip to content

Commit

Permalink
Update python/libpyomnitrace.cpp
Browse files Browse the repository at this point in the history
- fix usage of substr (ignored return value)
  • Loading branch information
jrmadsen committed Feb 8, 2024
1 parent 089c1ad commit b0ee13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/python/libpyomnitrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ PYBIND11_MODULE(libpyomnitrace, omni)
}
if(!_cmd_line.empty())
{
_cmd_line.substr(_cmd_line.find_first_not_of(' '));
_cmd_line = _cmd_line.substr(_cmd_line.find_first_not_of(' '));
tim::set_env("OMNITRACE_COMMAND_LINE", _cmd_line, 0);
}
omnitrace_init("trace", false, _cmd.c_str());
Expand Down

0 comments on commit b0ee13a

Please sign in to comment.