diff options
| author | yangwei <[email protected]> | 2024-11-27 19:37:03 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-11-27 19:37:03 +0800 |
| commit | 3202b9ae3107564824b87e89f43d56e525c39a57 (patch) | |
| tree | 145e82141c93257bc861f6a8a4098eba3b870117 /infra | |
| parent | 10dc717b073b4532238357eb646aed5a5c531a88 (diff) | |
🐞 fix(fix module_get_by_name bug): continue find when mod null
Diffstat (limited to 'infra')
| -rw-r--r-- | infra/module_manager/module_manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/infra/module_manager/module_manager.c b/infra/module_manager/module_manager.c index a8a3233..3765c7b 100644 --- a/infra/module_manager/module_manager.c +++ b/infra/module_manager/module_manager.c @@ -226,7 +226,7 @@ struct module *module_manager_get_module(struct module_manager *mod_mgr, const c { for(int i=0; i<mod_mgr->n_descriptor; i++) { - if(mod_mgr->descriptors[i].mod == NULL)break; + if(mod_mgr->descriptors[i].mod == NULL)continue; if(strcmp(mod_mgr->descriptors[i].mod->name, module_name)==0 && mod_mgr->descriptors[i].initialized) { return mod_mgr->descriptors[i].mod; |
