shithub: git9

Download patch

ref: 1d937b211a7ea5d79a1282287167a0e2ab659aeb
parent: 599d352cea4e8dab012c5ae77c56d567c5427e0f
author: Ori Bernstein <[email protected]>
date: Fri Jan 15 10:46:31 EST 2021

cache: fix inverted condition (thanks igor.boehm)

A recent commit to make it more explicit accidentally
inverted the condition. Invert it again.

--- a/pack.c
+++ b/pack.c
@@ -141,7 +141,7 @@
 	if(lrutail == o){
 		lrutail = o->prev;
 		lrutail->next = nil;
-	}else if(lrutail != nil)
+	}else if(lrutail == nil)
 		lrutail = o;
 	if(lruhead)
 		lruhead->prev = o;