Skip to content

Commit

Permalink
fix coverity defects
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Jan 14, 2024
1 parent efb5972 commit 6e4a946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bind/syscmd/autocmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ namespace vind

auto [event_str, patcmd] = core::extract_double_args(pargs) ;
auto [pattern, cmd] = core::extract_double_args(patcmd) ;
auto patterns = util::split(pattern, ",") ;
auto patterns = util::split(std::move(pattern), ",") ;

if(event_str == "*") {
if(patterns.empty()) {
Expand Down

0 comments on commit 6e4a946

Please sign in to comment.