]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
reorder test to silence cppcheck
authorMark Andrews <marka@isc.org>
Thu, 15 Feb 2018 04:53:47 +0000 (15:53 +1100)
committerMark Andrews <marka@isc.org>
Fri, 16 Feb 2018 07:37:05 +0000 (18:37 +1100)
bin/tests/mdig.c

index a8980761f7ee8e2082a08efe6dc1e478e6d5e008..b99079ef28c3a246d76afc78790adf671372ff7e 100644 (file)
@@ -1820,7 +1820,7 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv)
                                continue;
                        input = batchline;
                        bargv[bargc] = next_token(&input, " \t\r\n");
-                       while ((bargv[bargc] != NULL) && (bargc < 14)) {
+                       while ((bargc < 14) && (bargv[bargc] != NULL)) {
                                bargc++;
                                bargv[bargc] = next_token(&input, " \t\r\n");
                        }