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 shared directory state between KILL, FILES, and _FILES$ #557

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

a740g
Copy link
Contributor

@a740g a740g commented Oct 13, 2024

This PR addresses a bug where KILL, FILES, and _FILES$ unintentionally shared a static DIR pointer when performing file searches. As a result, calling any of these functions would reset the search state of _FILES$, leading to unexpected behavior.

Each of these functions (KILL, FILES, and _FILES$) now maintains its own separate directory search state, preventing interference between them.

This issue was reported here.

@a740g a740g added the bug Something isn't working label Oct 13, 2024
@a740g a740g self-assigned this Oct 13, 2024
@a740g a740g merged commit b8edf33 into QB64-Phoenix-Edition:main Oct 13, 2024
4 checks passed
@a740g a740g deleted the filesystem-lib-fixes branch October 13, 2024 12:05
@RhoSigma-QB64 RhoSigma-QB64 mentioned this pull request Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants