Author: brian
Date: Mon Aug  3 09:55:03 2009
New Revision: 196049
URL: http://svn.freebsd.org/changeset/base/196049

Log:
  MFC: Fix some uninitialised variables.
  
  PR:           136383
  Submitted by: Ulrich Spoerlein - uqs at spoerlein dot net

Added:
  stable/7/tools/regression/usr.bin/jot/regress.dddd.out
     - copied unchanged from r195443, 
head/tools/regression/usr.bin/jot/regress.dddd.out
Modified:
  stable/7/tools/regression/usr.bin/jot/   (props changed)
  stable/7/tools/regression/usr.bin/jot/regress.sh
  stable/7/usr.bin/jot/   (props changed)
  stable/7/usr.bin/jot/jot.c

Copied: stable/7/tools/regression/usr.bin/jot/regress.dddd.out (from r195443, 
head/tools/regression/usr.bin/jot/regress.dddd.out)
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ stable/7/tools/regression/usr.bin/jot/regress.dddd.out      Mon Aug  3 
09:55:03 2009        (r196049, copy of r195443, 
head/tools/regression/usr.bin/jot/regress.dddd.out)
@@ -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: stable/7/tools/regression/usr.bin/jot/regress.sh
==============================================================================
--- stable/7/tools/regression/usr.bin/jot/regress.sh    Mon Aug  3 09:43:06 
2009        (r196048)
+++ stable/7/tools/regression/usr.bin/jot/regress.sh    Mon Aug  3 09:55:03 
2009        (r196049)
@@ -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: stable/7/usr.bin/jot/jot.c
==============================================================================
--- stable/7/usr.bin/jot/jot.c  Mon Aug  3 09:43:06 2009        (r196048)
+++ stable/7/usr.bin/jot/jot.c  Mon Aug  3 09:55:03 2009        (r196049)
@@ -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) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to