Skip to content

Commit

Permalink
lib: Event filter - Source line number 0 now means "any"
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and cmouse committed Aug 7, 2018
1 parent ec36bac commit 82ab59c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/event-filter.c
Expand Up @@ -487,7 +487,8 @@ event_filter_query_match(const struct event_filter_query_internal *query,
return FALSE;
}
if (query->source_filename != NULL) {
if (source_linenum != query->source_linenum ||
if ((source_linenum != query->source_linenum &&
query->source_linenum != 0) ||
source_filename == NULL ||
strcmp(event->source_filename, query->source_filename) != 0)
return FALSE;
Expand Down

0 comments on commit 82ab59c

Please sign in to comment.