]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Class1: Initialize blockNumber
authorAidan Van Dyk <aidan@ifax.com>
Mon, 28 Apr 2008 20:31:13 +0000 (20:31 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Mon, 28 Apr 2008 20:31:13 +0000 (20:31 +0000)
| commit d1d12bd76d5f617e014b3f036985e44a56bf2037
| Author: Lee Howard <faxguy@howardsilvan.com>
| Date:   Sat Jan 5 21:43:28 2008 +0000
|
|     blockNumber was not properly initialized... thus when the compiler wasn't
|     initializing it for us, we'd have problems.

faxd/Class1Send.c++

index 065aed39f3c35d5b86ed6a2a2a4582caa3f42785..5df875e42a7d91e605e6d297bc837d5422b2f877 100644 (file)
@@ -1724,7 +1724,7 @@ Class1Modem::sendPage(TIFF* tif, Class2Params& params, u_int pageChop, u_int ppm
     }
 
     bool rc = true;
-    frameNumber = ecmBlockPos = ecmFramePos = ecmBitPos = ecmOnes = ecmByte = 0;
+    blockNumber = frameNumber = ecmBlockPos = ecmFramePos = ecmBitPos = ecmOnes = ecmByte = 0;
     protoTrace("SEND begin page");
 
     tstrip_t nstrips = TIFFNumberOfStrips(tif);