summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Leadbeater <dgl@dgl.cx>2014-06-29 22:01:05 +0100
committerDavid Leadbeater <dgl@dgl.cx>2014-06-30 00:19:27 +0100
commit96701b6c6840dd9eead97f70277ec1602c70d8af (patch)
tree252f94fa225b76d05d7e4df489c17bd013c91df2 /src
parent2b6bba3fd2019158990f13d9e8913fd3bbb20b61 (diff)
downloadirssi-96701b6c6840dd9eead97f70277ec1602c70d8af.zip
Make it more obvious if -pattern wasn't provided to a regexp /ignore
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/fe-ignore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-ignore.c b/src/fe-common/core/fe-ignore.c
index 7c23ad94..6d53bf1b 100644
--- a/src/fe-common/core/fe-ignore.c
+++ b/src/fe-common/core/fe-ignore.c
@@ -56,8 +56,10 @@ static void ignore_print(int index, IGNORE_REC *rec)
if (rec->exception) g_string_append(options, "-except ");
if (rec->regexp) {
g_string_append(options, "-regexp ");
+ if (rec->pattern == NULL)
+ g_string_append(options, "[INVALID! -pattern missing] ");
#ifdef HAVE_REGEX_H
- if (!rec->regexp_compiled)
+ else if (!rec->regexp_compiled)
g_string_append(options, "[INVALID!] ");
#endif
}