]> 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 06:15:49 +0000 (17:15 +1100)
bin/tests/mdig.c

index 9e023e811a7e0dde79d72c6ced2abd40b6935c61..4d6cc9912621c772c9c1f6206ad05bb9223dfef2 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");
                        }