X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Frasterize;a=blobdiff_plain;f=list.h;h=91f176d50325afb1153c829223697cbe19203a8b;hp=5adf22874fede7db45e32a99ad7d77a3ef078b1a;hb=09dd89d10e65029f0be313dd463ba1f43cac2fbb;hpb=c875478cdd823c7df8fdc859941bd9e5948c9315 diff --git a/list.h b/list.h index 5adf228..91f176d 100644 --- a/list.h +++ b/list.h @@ -94,10 +94,10 @@ void list_pop(list_t** l) * This is a O(n) operation. */ INLINE_MAYBE -void list_destroy(list_t* l) +void list_destroy(list_t** l) { - while (l) { - list_pop(&l); + while (*l) { + list_pop(l); } }