From 085aa44fcd442ab031cad8160ebf2d605b0d6325 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sun, 30 Aug 2009 20:03:41 -0700 Subject: Small bugfix. --- src/upb_mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/upb_mm.c') diff --git a/src/upb_mm.c b/src/upb_mm.c index 769db96..bdf5f08 100644 --- a/src/upb_mm.c +++ b/src/upb_mm.c @@ -59,8 +59,8 @@ static struct upb_mm_ref *find_or_create_ref(struct upb_mm_ref *fromref, struct upb_mm_ref **ref = &head->refs; while(*ref && (*ref)->mm <= mm) { if((*ref)->mm == mm) { - return *ref; *created = false; + return *ref; } ref = &((*ref)->next); } -- cgit v1.2.3