Skip to content

Commit 0f985ed

Browse files
author
Alex Rønne Petersen
committed
[profiler] Skip lines not starting with +/- in coverage filter files.
This allows writing comment lines.
1 parent 76872ed commit 0f985ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mono/profiler/coverage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ coverage_filter (MonoProfiler *prof, MonoMethod *method)
539539
for (guint i = 0; i < coverage_profiler.filters->len; ++i) {
540540
// FIXME: Is substring search sufficient?
541541
char *filter = (char *)g_ptr_array_index (coverage_profiler.filters, i);
542-
if (filter [0] == '+')
542+
if (filter [0] == '+' || filter [0] != '-')
543543
continue;
544544

545545
// Skip '-'

0 commit comments

Comments
 (0)