symvalue.as_cpointer = NULL;
tresult = isc_symtab_define(inview, tmp, 1, symvalue,
isc_symexists_replace);
- if (result == ISC_R_SUCCESS && tresult != ISC_R_SUCCESS)
- {
- result = tresult;
- }
+ RUNTIME_CHECK(tresult == ISC_R_SUCCESS);
} break;
default:
for (i = 0; default_channels[i] != NULL; i++) {
tresult = isc_symtab_define(symtab, default_channels[i], 1,
symvalue, isc_symexists_replace);
- if (tresult != ISC_R_SUCCESS) {
- result = tresult;
- }
+ RUNTIME_CHECK(tresult == ISC_R_SUCCESS);
}
cfg_map_get(logobj, "channel", &channels);
}
tresult = isc_symtab_define(symtab, channelname, 1, symvalue,
isc_symexists_replace);
- if (tresult != ISC_R_SUCCESS) {
- result = tresult;
- }
+ RUNTIME_CHECK(tresult == ISC_R_SUCCESS);
}
cfg_map_get(logobj, "category", &categories);