mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-23 16:20:00 +00:00
init: fix repeat early-init in triggerType[]
Signed-off-by: sun_fan <sun_fan1@hoperun.com>
This commit is contained in:
parent
03ba491ff2
commit
8765067144
@ -194,7 +194,7 @@ static int GetTriggerIndex(const char *type)
|
||||
return TRIGGER_PARAM;
|
||||
}
|
||||
static const char *triggerType[] = {
|
||||
"pre-init", "boot", "early-init", "init", "early-init", "late-init", "post-init",
|
||||
"pre-init", "boot", "early-init", "init", "late-init", "post-init",
|
||||
"early-fs", "post-fs", "late-fs", "post-fs-data"
|
||||
};
|
||||
for (size_t i = 0; i < sizeof(triggerType) / sizeof(char*); i++) {
|
||||
@ -418,4 +418,4 @@ TriggerNode *GetTriggerByName(TriggerWorkSpace *workSpace, const char *triggerNa
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user