Fix some uninitialise variables.

PR:		136383
Submitted by:	Ulrich Spoerlein - uqs at spoerlein dot net
Approved by:	re (kib)
MFC after:	3 weeks
This commit is contained in:
brian 2009-07-08 10:16:16 +00:00
parent a4c5e4ab3a
commit 446d01edc9
3 changed files with 106 additions and 5 deletions

View File

@ -0,0 +1,100 @@
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100

View File

@ -1,6 +1,6 @@
# $FreeBSD$
echo 1..56
echo 1..57
REGRESSION_START($1)
@ -20,6 +20,7 @@ REGRESSION_TEST(`dhdd', `jot - 20 - -')
REGRESSION_TEST(`ddhh', `jot - - 120 2')
REGRESSION_TEST(`ddhd', `jot - - 120 -')
REGRESSION_TEST(`dddh', `jot - - - 2')
REGRESSION_TEST(`dddd', `jot - - - -')
REGRESSION_TEST(`hhhh2', `jot 30 20 160 2')
REGRESSION_TEST(`hhhd2', `jot 30 20 160 -')
REGRESSION_TEST(`hhdh2', `jot 30 20 - 2')

View File

@ -101,13 +101,13 @@ main(int argc, char **argv)
int ch;
int mask = 0;
int n = 0;
double begin;
double begin = BEGIN_DEF;
double divisor;
double ender;
double s;
double ender = ENDER_DEF;
double s = STEP_DEF;
double x, y;
long i;
long reps;
long reps = REPS_DEF;
while ((ch = getopt(argc, argv, "b:cnp:rs:w:")) != -1)
switch (ch) {