Skip to content

Commit

Permalink
Fix use after move in YARAEventSubscriber::configure (#6054)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smjert authored and theopolis committed Nov 17, 2019
1 parent e9b224b commit 8bab38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osquery/tables/yara/yara_events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void YARAEventSubscriber::configure() {
sc->recursive = 0;
sc->path = file;
sc->mask = FILE_CHANGE_MASK;
sc->category = std::move(category);
sc->category = category;
subscribe(&YARAEventSubscriber::Callback, sc);
}
}
Expand Down

0 comments on commit 8bab38e

Please sign in to comment.