diff options
author | Ulrich Spörlein <uqs@FreeBSD.org> | 2010-06-14 13:03:25 +0000 |
---|---|---|
committer | Ulrich Spörlein <uqs@FreeBSD.org> | 2010-06-14 13:03:25 +0000 |
commit | a1183253683c9f9a1523ae67a8c13dac1dc8d6c6 (patch) | |
tree | dc16bd17543aa53d85a4fefebff6e85988476445 /games/random | |
parent | 7041d50cfd2181d5541b3537df3b74cdc5f9f6d7 (diff) | |
download | src-a1183253683c9f9a1523ae67a8c13dac1dc8d6c6.tar.gz src-a1183253683c9f9a1523ae67a8c13dac1dc8d6c6.zip |
random(6): avoid dead assignments
Found by: clang static analyzer
Notes
Notes:
svn path=/head/; revision=209157
Diffstat (limited to 'games/random')
-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 4ec36c6377a7..99f9d900f1b8 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 94881f72de62..da41769ffbb6 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; |