From 95aef24803bc1317a4ba022ecd49fa531c29d3ca Mon Sep 17 00:00:00 2001 From: theraven Date: Sat, 5 Jan 2013 16:13:23 +0000 Subject: [PATCH] Fix crash in ARC assignment. Reported by Banlu Name-of-the-week! --- arc.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arc.m b/arc.m index 252d1bf..3d4f7a3 100644 --- a/arc.m +++ b/arc.m @@ -520,7 +520,7 @@ id objc_storeWeak(id *addr, id obj) break; } } - oldRef = oldRef->next; + oldRef = (oldRef == NULL) ? NULL : oldRef->next; } } if (nil == obj)