]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
more: remove a meaningless test
authorJeremy Huntwork <jhuntwork@lightcubesolutions.com>
Wed, 23 May 2012 21:51:15 +0000 (17:51 -0400)
committerKarel Zak <kzak@redhat.com>
Tue, 5 Jun 2012 12:09:36 +0000 (14:09 +0200)
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>
text-utils/more.c

index d7d93226fb6199f7582d1314d44332fe8caff03c..ac05a658a08f7f58407d730d21cd4f3d207a25dd 100644 (file)
@@ -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) {