summaryrefslogtreecommitdiff
path: root/src/filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/filter.c')
-rw-r--r--src/filter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/filter.c b/src/filter.c
index fd1bb40..ccdcdd6 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -326,7 +326,9 @@ int filter_tee_header (struct filter *chain)
static bool is_blank_line (const char *str)
{
- return (regexec (&regex_blank_line, str, 0, NULL, 0) == 0);
+ while (isspace(*str))
+ str++;
+ return (*str == '\0');
}
/** Adjust the line numbers in the #line directives of the generated scanner.