diff options
author | uqs <uqs@FreeBSD.org> | 2010-06-14 13:03:25 +0000 |
---|---|---|
committer | uqs <uqs@FreeBSD.org> | 2010-06-14 13:03:25 +0000 |
commit | da0290f8d3606ed387adb04fec5d24de81a39032 (patch) | |
tree | dc16bd17543aa53d85a4fefebff6e85988476445 | |
parent | 6586564ab79e4eea8e794175c8a3f48a7f34d36d (diff) | |
download | FreeBSD-src-da0290f8d3606ed387adb04fec5d24de81a39032.zip FreeBSD-src-da0290f8d3606ed387adb04fec5d24de81a39032.tar.gz |
random(6): avoid dead assignments
Found by: clang static analyzer
-rw-r--r-- | games/random/random.c | 2 | ||||
-rw-r--r-- | games/random/randomize_fd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/games/random/random.c b/games/random/random.c index 4ec36c6..99f9d90 100644 --- a/games/random/random.c +++ b/games/random/random.c @@ -73,7 +73,7 @@ main(int argc, char *argv[]) denom = 0; filename = "/dev/fd/0"; random_type = RANDOM_TYPE_UNSET; - random_exit = randomize_lines = random_type = unbuffer_output = 0; + random_exit = randomize_lines = unbuffer_output = 0; unique_output = 1; (void)setlocale(LC_CTYPE, ""); diff --git a/games/random/randomize_fd.c b/games/random/randomize_fd.c index 94881f7..da41769 100644 --- a/games/random/randomize_fd.c +++ b/games/random/randomize_fd.c @@ -104,7 +104,7 @@ randomize_fd(int fd, int type, int unique, double denom) rand_root = rand_tail = NULL; bufc = i = 0; - bufleft = eof = fndstr = numnode = ret = 0; + bufleft = eof = fndstr = numnode = 0; if (type == RANDOM_TYPE_UNSET) type = RANDOM_TYPE_LINES; |