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

tmpfs_create(): add missing initialization of return value #2009

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

francescolavra
Copy link
Member

The fss variable, which contains the return value of the tmpfs_create() function, is not being initialized when creating non-regular files. This issue is detected by the clang compiler with "error: variable 'fss' is used uninitialized whenever 'if' condition is false".

The `fss` variable, which contains the return value of the
tmpfs_create() function, is not being initialized when creating
non-regular files. This issue is detected by the clang compiler
with "error: variable 'fss' is used uninitialized whenever 'if'
condition is false".
@francescolavra francescolavra merged commit 8a66481 into master Mar 12, 2024
1 of 5 checks passed
@francescolavra francescolavra deleted the fix/tmpfs branch March 12, 2024 17:07
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