1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00

random(6): avoid dead assignments

Found by:	clang static analyzer
This commit is contained in:
Ulrich Spörlein 2010-06-14 13:03:25 +00:00
parent 7041d50cfd
commit a118325368
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209157
2 changed files with 2 additions and 2 deletions

View File

@ -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, "");

View File

@ -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;