From 3ff8d68793ec466b25dda6ed05d4ec673b66605e Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 30 Apr 1999 02:04:11 +0000 Subject: [PATCH] Make it clear which 'if' an 'else' belongs to. --- lib/dns/rbt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/dns/rbt.c b/lib/dns/rbt.c index 11e349644f..4ab8abb3be 100644 --- a/lib/dns/rbt.c +++ b/lib/dns/rbt.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: rbt.c,v 1.49 1999/04/24 02:03:25 halley Exp $ */ +/* $Id: rbt.c,v 1.50 1999/04/30 02:04:11 halley Exp $ */ /* Principal Authors: DCL */ @@ -516,11 +516,12 @@ dns_rbt_addnode(dns_rbt_t *rbt, dns_name_t *name, dns_rbtnode_t **nodep) { /* * Fix pointers that were to the current node. */ - if (parent != NULL) + if (parent != NULL) { if (LEFT(parent) == current) LEFT(parent) = new_current; else RIGHT(parent) = new_current; + } if (*root == current) *root = new_current;