From dd81cda46286b7cc018cc4a7a4e2ff9c7f3525cd Mon Sep 17 00:00:00 2001 From: theraven Date: Wed, 11 May 2011 10:44:34 +0000 Subject: [PATCH] Fix autocompletion bug. --- selector_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selector_table.c b/selector_table.c index da495c1..1c03a72 100644 --- a/selector_table.c +++ b/selector_table.c @@ -354,7 +354,7 @@ static SEL objc_register_selector_copy(SEL aSel, BOOL copyArgs) copy = selector_pool_alloc(); copy->name = copyArgs ? strdup(aSel->name) : aSel->name; copy->types = (NULL == aSel->types) ? NULL : - (copy ? strdup(aSel->types) : aSel->types); + (copyArgs ? strdup(aSel->types) : aSel->types); // Try to register the copy as the authoritative version register_selector_locked(copy); return copy;