- remove dead code in server.c
- initialize a struct tm.c
* Check that all the arguments match.
*/
for (i = 0; i < dbtypec; i++)
- if (argv[i] == NULL || strcmp(argv[i], dbargv[i]) != 0) {
+ if (argv[i] == NULL || strcmp(argv[i], dbargv[i]) != 0)
CHECK(ISC_R_FAILURE);
- break;
- }
/*
* Check that there are not extra arguments.
if (fp != NULL) {
line = 0;
while ((p = t_fgetbs(fp)) != NULL) {
-
++line;
/*
else if (!strcmp(Tokens[2], "commonancestor"))
reln = dns_namereln_commonancestor;
else {
- t_info("bad format at line %d\n",
- line);
+ t_info("bad format at line %d\n", line);
+ (void)free(p);
continue;
}
result = test_dns_name_fullcompare(
size_t len = 0;
int alt_format, i, split_year = 0;
+ REQUIRE(buf != NULL);
+ REQUIRE(fmt != NULL);
+ REQUIRE(tm != NULL);
+
+ memset(tm, 0, sizeof(struct tm));
+
bp = buf;
while ((c = *fmt) != '\0') {