From 76ef00776676fc0d1d54fdf6006e093da77a15d3 Mon Sep 17 00:00:00 2001 From: theraven Date: Fri, 29 Apr 2011 11:21:59 +0000 Subject: [PATCH] Actually return the correct value in case of races. --- properties.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/properties.m b/properties.m index a3ea28e..e677e9a 100644 --- a/properties.m +++ b/properties.m @@ -300,7 +300,7 @@ const char *property_getAttributes(objc_property_t property) if (!__sync_bool_compare_and_swap(&(property->name), name, encoding)) { free(encoding); - return name + 2; + return property->name + 2; } return (const char*)(encoding + 2); }