Actually return the correct value in case of races.

main
theraven 15 years ago
parent 94f72f539b
commit 76ef007766

@ -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);
}

Loading…
Cancel
Save