[svn-commits] rmudgett: branch rmudgett/ao2_red_black r371781 - /team/rmudgett/ao2_red_blac...
    SVN commits to the Digium repositories 
    svn-commits at lists.digium.com
       
    Mon Aug 27 16:07:01 CDT 2012
    
    
  
Author: rmudgett
Date: Mon Aug 27 16:06:57 2012
New Revision: 371781
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=371781
Log:
Fix sibling color set in rb_delete_fixup.
Modified:
    team/rmudgett/ao2_red_black/main/astobj2.c
Modified: team/rmudgett/ao2_red_black/main/astobj2.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ao2_red_black/main/astobj2.c?view=diff&rev=371781&r1=371780&r2=371781
==============================================================================
--- team/rmudgett/ao2_red_black/main/astobj2.c (original)
+++ team/rmudgett/ao2_red_black/main/astobj2.c Mon Aug 27 16:06:57 2012
@@ -3595,7 +3595,7 @@
 				sibling->is_red = child->parent->is_red;
 				child->parent->is_red = 0;
 				if (sibling->right) {
-					sibling->is_red = 0;
+					sibling->right->is_red = 0;
 				}
 				rb_rotate_left(self, child->parent);
 				child = self->root;
@@ -3636,7 +3636,7 @@
 				sibling->is_red = child->parent->is_red;
 				child->parent->is_red = 0;
 				if (sibling->left) {
-					sibling->is_red = 0;
+					sibling->left->is_red = 0;
 				}
 				rb_rotate_right(self, child->parent);
 				child = self->root;
    
    
More information about the svn-commits
mailing list