From bb29a1a8488c1fa4d9ee31f515e54348814bb8f1 Mon Sep 17 00:00:00 2001 From: Kresten Krab Thorup Date: Thu, 29 Apr 1993 11:50:17 +0000 Subject: [PATCH] Added check for selectors==0 From-SVN: r4271 --- gcc/objc/init.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/objc/init.c b/gcc/objc/init.c index 17a650c00ce..7277513bb7d 100644 --- a/gcc/objc/init.c +++ b/gcc/objc/init.c @@ -118,8 +118,11 @@ __objc_exec_class (Module_t module) } /* Replace referenced selectors from names to SEL's. */ - for (i = 0; selectors[i]; ++i) - selectors[i] = sel_register_name ((const char *) selectors[i]); + if (selectors) + { + for (i = 0; selectors[i]; ++i) + selectors[i] = sel_register_name ((const char *) selectors[i]); + } /* Process category information from the module. */ for (i = 0; i < symtab->cat_def_cnt; ++i) -- 2.30.2