From 65ac89cd4605ba01a6154c903fd54e2f9f7e6147 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 29 Jul 2019 22:37:36 -0700 Subject: man: switch to xregcomp. All regcomp callers are now going through xregcomp. --- toys/pending/man.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toys/pending') 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; -- cgit v1.2.3