svn commit: r195443 - in head: tools/regression/usr.bin/jot
usr.bin/jot
Brian Somers
brian at FreeBSD.org
Wed Jul 8 10:16:17 UTC 2009
Author: brian
Date: Wed Jul 8 10:16:16 2009
New Revision: 195443
URL: http://svn.freebsd.org/changeset/base/195443
Log:
Fix some uninitialise variables.
PR: 136383
Submitted by: Ulrich Spoerlein - uqs at spoerlein dot net
Approved by: re (kib)
MFC after: 3 weeks
Added:
head/tools/regression/usr.bin/jot/regress.dddd.out (contents, props changed)
Modified:
head/tools/regression/usr.bin/jot/regress.sh
head/usr.bin/jot/jot.c
Added: head/tools/regression/usr.bin/jot/regress.dddd.out
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/usr.bin/jot/regress.dddd.out Wed Jul 8 10:16:16 2009 (r195443)
@@ -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
Modified: head/tools/regression/usr.bin/jot/regress.sh
==============================================================================
--- head/tools/regression/usr.bin/jot/regress.sh Wed Jul 8 06:07:51 2009 (r195442)
+++ head/tools/regression/usr.bin/jot/regress.sh Wed Jul 8 10:16:16 2009 (r195443)
@@ -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')
Modified: head/usr.bin/jot/jot.c
==============================================================================
--- head/usr.bin/jot/jot.c Wed Jul 8 06:07:51 2009 (r195442)
+++ head/usr.bin/jot/jot.c Wed Jul 8 10:16:16 2009 (r195443)
@@ -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) {
More information about the svn-src-head
mailing list