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

Initialize variables before use #1141

Merged
merged 1 commit into from
May 26, 2020

Conversation

antlarr-suse
Copy link
Contributor

When building an afdko package on the openSUSE build service
many tests failed. After some investigation I compared the workflow
in parallel debugging sessions inside the build service and a
regular system (where they didn't fail). I noticed the reason
of the failing is that afdko uses some variables that were not
initialized so on systems where memory is automatically set to 0
they work fine, but this is not safe in general (and cannot
be guaranteed), so it's better to initialize the variables.

When building an afdko package on the openSUSE build service
many tests failed. After some investigation I compared the workflow
in parallel debugging sessions inside the build service and a
regular system (where they didn't fail). I noticed the reason
of the failing is that afdko uses some variables that were not
initialized so on systems where memory is automatically set to 0
they work fine, but this is not safe in general (and cannot
be guaranteed), so it's better to initialize the variables.
@josh-hadley josh-hadley self-requested a review May 26, 2020 16:07
Copy link
Collaborator

@josh-hadley josh-hadley left a comment

Choose a reason for hiding this comment

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

Great! Thanks very much for this update!

@josh-hadley josh-hadley merged commit 068331c into adobe-type-tools:develop May 26, 2020
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.

2 participants