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

Micro-optimizations:

- use the DNS_NAME_INIT macro in name.c
	- create dns_name_copy() and use it instead of dns_name_concatenate()
	  when doing a copy.
This commit is contained in:
Brian Wellington
2001-01-03 00:05:15 +00:00
parent 22dbaf9ad8
commit 6d5032f9a2
6 changed files with 114 additions and 56 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rbt.c,v 1.96 2000/12/11 19:24:16 bwelling Exp $ */
/* $Id: rbt.c,v 1.97 2001/01/03 00:05:11 bwelling Exp $ */
/* Principal Authors: DCL */
@@ -2296,8 +2296,7 @@ dns_rbtnodechain_current(dns_rbtnodechain_t *chain, dns_name_t *name,
if (chain->level_count > 0)
result = chain_name(chain, origin, ISC_FALSE);
else
result = dns_name_concatenate(NULL, dns_rootname,
origin, NULL);
result = dns_name_copy(dns_rootname, origin, NULL);
}
return (result);