From: Sami Kerola Date: Sun, 16 Dec 2012 10:43:55 +0000 (+0000) Subject: more: remove unnecessary variable X-Git-Tag: v2.23-rc1~406 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdd2cf46c8d92a03dc0c2883d65c606d8874177f;p=thirdparty%2Futil-linux.git more: remove unnecessary variable Signed-off-by: Sami Kerola --- diff --git a/text-utils/more.c b/text-utils/more.c index 163f016c46..41caeb1943 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -1578,7 +1578,7 @@ void search(char buf[], FILE *file, register int n) register long line2 = startline; register long line3 = startline; register int lncount; - int saveln, rv, rc; + int saveln, rc; regex_t re; context.line = saveln = Currline; @@ -1595,7 +1595,7 @@ void search(char buf[], FILE *file, register int n) line1 = Ftell(file); rdline(file); lncount++; - if ((rv = regexec(&re, Line, 0, NULL, 0)) == 0) { + if (regexec(&re, Line, 0, NULL, 0) == 0) { if (--n == 0) { if (lncount > 3 || (lncount > 1 && no_intty)) { putchar('\n');