summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-08-07 23:09:26 +0200
committerLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-08-07 23:09:26 +0200
commit1850bc1d3cf8fff104ebda5b0734755ede3a5dbe (patch)
tree7c4a0df0b970de6dc58e5e604d5547eff1f17b09
parentd7b93a6a7465f1eca44afee7d6684d350e223507 (diff)
grijp: add error when regcomp fails
-rw-r--r--src/grijp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grijp.c b/src/grijp.c
index 8e9dba6..7d33f83 100644
--- a/src/grijp.c
+++ b/src/grijp.c
@@ -104,7 +104,7 @@ static int process_regex(char *fname, bool isstdin) {
if (icase) flags |= REG_ICASE;
if (regcomp(regexp, patterns[i], flags) != 0) {
- // TODO: error
+ fprintf(stderr, "grijp: fout tijdens compileren van reguliere expressie\n");
return 1;
}