]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
initialise matches
authorMark Andrews <marka@isc.org>
Mon, 2 Jun 2014 03:53:37 +0000 (13:53 +1000)
committerMark Andrews <marka@isc.org>
Mon, 2 Jun 2014 03:53:37 +0000 (13:53 +1000)
bin/tests/system/rrsetorder/tests.sh

index fe75fb31df8a51de73edaf214caec62b1bc33033..2047fc2e62031be9057b8961d0efb9d6657dc1d2 100644 (file)
@@ -43,13 +43,14 @@ if $test_fixed; then
 else
     echo "I: Checking order fixed behaves as cyclic when disabled (master)"
     ret=0
+    matches=0
     for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
     do
         j=`expr $i % 4`
         $DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
                 -p 5300 @10.53.0.1 fixed.example > dig.out.fixed  || ret=1
         if [ $i -le 4 ]; then
-            cp dig.out.fixed  dig.out.$j
+            cp dig.out.fixed dig.out.$j
         else
             cmp -s dig.out.fixed dig.out.$j && matches=`expr $matches + 1`
         fi