summaryrefslogtreecommitdiffstats
path: root/text-utils/more.c
diff options
context:
space:
mode:
authorJeremy Huntwork2012-05-23 23:51:15 +0200
committerKarel Zak2012-06-05 14:09:36 +0200
commit7f84e4440f8e9b930ec7b2bc5c13295b315fc168 (patch)
tree7415c953242aa387ac398ba4ba500f2a72f53d1d /text-utils/more.c
parentbuild-sys: move configure login options to one place (diff)
downloadkernel-qcow2-util-linux-7f84e4440f8e9b930ec7b2bc5c13295b315fc168.tar.gz
kernel-qcow2-util-linux-7f84e4440f8e9b930ec7b2bc5c13295b315fc168.tar.xz
kernel-qcow2-util-linux-7f84e4440f8e9b930ec7b2bc5c13295b315fc168.zip
more: remove a meaningless test
regexec only returns 0 or REG_NOMATCH so remove a meaningless test Signed-off-by: Jeremy Huntwork <jhuntwork@lightcubesolutions.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/more.c')
-rw-r--r--text-utils/more.c3
1 files changed, 1 insertions, 2 deletions
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) {