From: Jeremy Huntwork Date: Wed, 23 May 2012 21:51:15 +0000 (-0400) Subject: more: remove a meaningless test X-Git-Tag: v2.22-rc1~334 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f84e4440f8e9b930ec7b2bc5c13295b315fc168;p=thirdparty%2Futil-linux.git 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 --- diff --git a/text-utils/more.c b/text-utils/more.c index d7d93226fb..ac05a658a0 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) {