From 7f84e4440f8e9b930ec7b2bc5c13295b315fc168 Mon Sep 17 00:00:00 2001 From: Jeremy Huntwork Date: Wed, 23 May 2012 17:51:15 -0400 Subject: more: remove a meaningless test regexec only returns 0 or REG_NOMATCH so remove a meaningless test Signed-off-by: Jeremy Huntwork Signed-off-by: Karel Zak --- text-utils/more.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'text-utils/more.c') diff --git a/text-utils/more.c b/text-utils/more.c index d7d93226f..ac05a658a 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -1634,8 +1634,7 @@ void search(char buf[], FILE *file, register int n) } break; } - } else if (rv != REG_NOMATCH) - more_error (_("Regular expression botch")); + } } if (feof (file)) { if (!no_intty) { -- cgit v1.2.3-55-g7522