From: Wilhansen Li Date: Fri, 30 Dec 2016 04:25:34 +0000 (+0800) Subject: Fix bug in original insertion sort code. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cce100f0b5969e1431881b1af3feedac44de4653;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_tools_dtbtool.git Fix bug in original insertion sort code. --- diff --git a/dtbTool.c b/dtbTool.c index 680019b..385a03e 100644 --- a/dtbTool.c +++ b/dtbTool.c @@ -204,6 +204,7 @@ int chip_add(struct chipInfo_t *c) } else { c->next = x; c->prev = x->prev; + x->prev->next = c; x->prev = c; break; }