aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
diff options
context:
space:
mode:
Diffstat (limited to 'toys/pending')
-rw-r--r--toys/pending/man.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/pending/man.c b/toys/pending/man.c
index 1d3487d0..7063df09 100644
--- a/toys/pending/man.c
+++ b/toys/pending/man.c
@@ -175,7 +175,8 @@ void man_main(void)
char *d, *f;
DIR *dp;
struct dirent *entry;
- if (regcomp(&TT.reg, TT.k, REG_ICASE|REG_NOSUB)) error_exit("bad regex");
+
+ xregcomp(&TT.reg, TT.k, REG_ICASE|REG_NOSUB);
while (!manpath()) {
d = xmprintf("%s/man%s", TT.m, *TT.sct);
if (!(dp = opendir(d))) continue;