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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user