diff options
author | Kresten Krab Thorup <krab@gcc.gnu.org> | 1993-04-29 11:50:17 +0000 |
---|---|---|
committer | Kresten Krab Thorup <krab@gcc.gnu.org> | 1993-04-29 11:50:17 +0000 |
commit | bb29a1a8488c1fa4d9ee31f515e54348814bb8f1 (patch) | |
tree | c319b6b4a8400cd6448b8379b54b9c87388d0d64 /gcc/objc/init.c | |
parent | 65e1be69ba634f616c02af04c857fd2930794ca8 (diff) | |
download | gcc-bb29a1a8488c1fa4d9ee31f515e54348814bb8f1.zip gcc-bb29a1a8488c1fa4d9ee31f515e54348814bb8f1.tar.gz gcc-bb29a1a8488c1fa4d9ee31f515e54348814bb8f1.tar.bz2 |
Added check for selectors==0
From-SVN: r4271
Diffstat (limited to 'gcc/objc/init.c')
-rw-r--r-- | gcc/objc/init.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/objc/init.c b/gcc/objc/init.c index 17a650c..7277513 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) |