From 6c1fc86f013324d18200470f73c49c70e4779afd Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Fri, 23 Mar 2018 10:10:23 +0000 Subject: [PATCH] Clean up a condition. Skip adding the null capability. --- loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader.c b/loader.c index 3402883..2ac1115 100644 --- a/loader.c +++ b/loader.c @@ -169,7 +169,7 @@ void __objc_load(struct objc_init *init) for (struct objc_category *cat = init->cat_begin ; cat < init->cat_end ; cat++) { - if (cat == NULL) + if ((cat == NULL) || (cat->class_name == NULL)) { continue; }