reorder test to silence cppcheck

This commit is contained in:
Mark Andrews
2018-02-16 14:59:20 +11:00
parent 5d9109c3b5
commit bb7a470a0d
+1 -1
View File
@@ -1872,7 +1872,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");
}