summaryrefslogtreecommitdiff
path: root/src/analysis/scan/scanner.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/scan/scanner.c')
-rw-r--r--src/analysis/scan/scanner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analysis/scan/scanner.c b/src/analysis/scan/scanner.c
index 7b553e6..57fe0d9 100644
--- a/src/analysis/scan/scanner.c
+++ b/src/analysis/scan/scanner.c
@@ -530,7 +530,7 @@ GScanContext *g_content_scanner_analyze(GContentScanner *scanner, GScanOptions *
global = true;
- for (i = 0; i < scanner->rule_count; i++)
+ for (i = 0; i < scanner->rule_count && global; i++)
{
rule = scanner->rules[i];