]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Avoid getting false-positive hasV34Trouble after training because we
authorLee Howard <faxguy@howardsilvan.com>
Wed, 16 Feb 2005 18:18:57 +0000 (18:18 +0000)
committerLee Howard <faxguy@howardsilvan.com>
Wed, 16 Feb 2005 18:18:57 +0000 (18:18 +0000)
didn't initialize the value beforehand.

faxd/Class1Send.c++

index 0128eb4bbe79909c1e8e2d8565ee8a2c42114afe..5a6d9a550b903dafe6d776ad164da2dee41a5a6a 100644 (file)
@@ -269,6 +269,8 @@ Class1Modem::sendPhaseB(TIFF* tif, Class2Params& next, FaxMachineInfo& info,
     HDLCFrame frame(conf.class1FrameOverhead);
 
     do {
+        hadV34Trouble = false;         // to monitor failure type
+       batchingError = false;
        signalRcvd = 0;
        if (abortRequested())
            return (send_failed);
@@ -319,8 +321,6 @@ Class1Modem::sendPhaseB(TIFF* tif, Class2Params& next, FaxMachineInfo& info,
        /*
         * Transmit the facsimile message/Phase C.
         */
-        hadV34Trouble = false;         // to monitor failure type
-       batchingError = false;
        if (!sendPage(tif, params, decodePageChop(pph, params), cmd, emsg)) {
            if (hadV34Trouble) {
                protoTrace("The destination appears to have trouble with V.34-Fax.");