* 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 */
lcfg->magic = LCFG_MAGIC;
} else
- return (ISC_R_NOMEMORY);
+ result = ISC_R_NOMEMORY;
/*
* Create the default channels:
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;