]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Correction from Lee to Lee's patch on Bug 309
authorTim Rice <tim@multitalents.net>
Fri, 18 Apr 2003 23:36:39 +0000 (23:36 +0000)
committerTim Rice <tim@multitalents.net>
Fri, 18 Apr 2003 23:36:39 +0000 (23:36 +0000)
faxd/Class1.c++

index 3c089c964e41879a1f3529d412394efec0f460d2..cd565044732e741320f51c5be99dd564fd5035ae 100644 (file)
@@ -934,13 +934,12 @@ Class1Modem::parseQuery(const char* cp, Class1Cap caps[])
        int r = v;
        if (cp[0] == '-') {                             // <low>-<high>
            cp++;
-           if (!isdigit(cp[0])) {
+           if (!isdigit(cp[0]))
                return (false);
-               r = 0;
-               do {
-                   r = r*10 + (cp[0] - '0');
-               } while (isdigit((++cp)[0]));
-           }
+           r = 0;
+           do {
+               r = r*10 + (cp[0] - '0');
+           } while (isdigit((++cp)[0]));
        }
        for (u_int i = 0; i < NCAPS; i++)
            if (caps[i].value >= v && caps[i].value <= r) {