Commit bb29a1a8 by Kresten Krab Thorup

Added check for selectors==0

From-SVN: r4271
parent 65e1be69
...@@ -118,8 +118,11 @@ __objc_exec_class (Module_t module) ...@@ -118,8 +118,11 @@ __objc_exec_class (Module_t module)
} }
/* Replace referenced selectors from names to SEL's. */ /* Replace referenced selectors from names to SEL's. */
for (i = 0; selectors[i]; ++i) if (selectors)
selectors[i] = sel_register_name ((const char *) selectors[i]); {
for (i = 0; selectors[i]; ++i)
selectors[i] = sel_register_name ((const char *) selectors[i]);
}
/* Process category information from the module. */ /* Process category information from the module. */
for (i = 0; i < symtab->cat_def_cnt; ++i) for (i = 0; i < symtab->cat_def_cnt; ++i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment