diff options
author | cperciva <cperciva@FreeBSD.org> | 2008-08-04 06:39:52 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2008-08-04 06:39:52 +0000 |
commit | 55239b4ba74bfd89b442877e0a7eb19b238fada4 (patch) | |
tree | 2ac1f33f454d0f949f4b8e9718c2b79c2eef55f4 /usr.bin/rs | |
parent | bfce43df588d6c27e2859a749c641a25969021b6 (diff) | |
download | FreeBSD-src-55239b4ba74bfd89b442877e0a7eb19b238fada4.zip FreeBSD-src-55239b4ba74bfd89b442877e0a7eb19b238fada4.tar.gz |
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
Diffstat (limited to 'usr.bin/rs')
-rw-r--r-- | usr.bin/rs/rs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.bin/rs/rs.c b/usr.bin/rs/rs.c index df01c57..82aaa9a 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; |