mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
binfmt: Don't schedule starthook if there are no constructors.
This commit is contained in:
@@ -276,7 +276,10 @@ int exec_module(FAR const struct binary_s *binp)
|
||||
* until the new task has been started.
|
||||
*/
|
||||
|
||||
task_starthook(tcb, exec_ctors, (FAR void *)binp);
|
||||
if (binp->nctors > 0)
|
||||
{
|
||||
task_starthook(tcb, exec_ctors, (FAR void *)binp);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Get the assigned pid before we start the task */
|
||||
|
||||
Reference in New Issue
Block a user