aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/rs
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2008-08-04 06:39:52 +0000
committerColin Percival <cperciva@FreeBSD.org>2008-08-04 06:39:52 +0000
commit5fe69bb518da768910eed2f88c32f018721ce718 (patch)
tree2ac1f33f454d0f949f4b8e9718c2b79c2eef55f4 /usr.bin/rs
parent3d85c23dc67b9b9274b0eb11d787eba18c89c112 (diff)
downloadsrc-5fe69bb518da768910eed2f88c32f018721ce718.tar.gz
src-5fe69bb518da768910eed2f88c32f018721ce718.zip
Setting a variable to the same value twice doesn't actually make it
more likely to have the right value. Remove superfluous assignments. Found by: LLVM/Clang Static Checker
Notes
Notes: svn path=/head/; revision=181278
Diffstat (limited to 'usr.bin/rs')
-rw-r--r--usr.bin/rs/rs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.bin/rs/rs.c b/usr.bin/rs/rs.c
index df01c57d1b63..82aaa9aeefce 100644
--- a/usr.bin/rs/rs.c
+++ b/usr.bin/rs/rs.c
@@ -153,7 +153,6 @@ getfile(void)
p++;
}
ep = getptrs(elem);
- p = curline;
do {
if (flags & ONEPERLINE) {
*ep = curline;