2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

redo 1.64 "potential null pointer dereference" more consistent with the style

of the function and file (i.e., not returning from the middle of a function)
This commit is contained in:
David Lawrence
2001-06-10 17:06:45 +00:00
parent c968a9ca37
commit eda73d8aad

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: log.c,v 1.66 2001/06/08 02:57:13 marka Exp $ */
/* $Id: log.c,v 1.67 2001/06/10 17:06:45 tale Exp $ */
/* Principal Authors: DCL */
@@ -339,7 +339,7 @@ isc_logconfig_create(isc_log_t *lctx, isc_logconfig_t **lcfgp) {
lcfg->magic = LCFG_MAGIC;
} else
return (ISC_R_NOMEMORY);
result = ISC_R_NOMEMORY;
/*
* Create the default channels:
@@ -364,13 +364,14 @@ isc_logconfig_create(isc_log_t *lctx, isc_logconfig_t **lcfgp) {
ISC_LOG_PRINTTIME);
}
/*
* Set the default category's channel to default_stderr, which
* is at the head of the channels list because it was just created.
*/
default_channel.channel = ISC_LIST_HEAD(lcfg->channels);
if (result == ISC_R_SUCCESS) {
/*
* Set the default category's channel to default_stderr,
* which is at the head of the channels list because it was
* just created.
*/
default_channel.channel = ISC_LIST_HEAD(lcfg->channels);
destination.file.stream = stderr;
destination.file.name = NULL;
destination.file.versions = ISC_LOG_ROLLNEVER;