Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix --show-model, init c_source%parent_modules. #712

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

zoziha
Copy link
Contributor

@zoziha zoziha commented Jun 15, 2022

  • Init the c_source%parent_modules array length as 0.

Description

Similar as #693, and related to #711, but not fully resolved #711 (Only bug1, not bug2)

If parent_modules is not length-initialized, a segfault will occur when printing the dependency tree (fpm build --show-model).

Copy link
Member

@LKedward LKedward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @zoziha, LGTM!

Copy link
Member

@awvwgk awvwgk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sharing

@awvwgk awvwgk merged commit 45b1498 into fortran-lang:main Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error with --show-model option
3 participants