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 crash at startup. #40377

Merged
merged 2 commits into from
May 9, 2020
Merged

Fix crash at startup. #40377

merged 2 commits into from
May 9, 2020

Conversation

BevapDin
Copy link
Contributor

@BevapDin BevapDin commented May 9, 2020

SUMMARY: None

This actually fixes "When starting files in current directory are scanned recursively". Fixes #40356.

In my build the variable options_manager::lang_options is initialized before the static variable langdir_value, which causes a crash right at the start.

This simply changes the code to do the language detection when needed (when options are initialized, which is done after PATH_INFO::set_standard_filenames).

May fix issue #40132 (I have no Android system to test this).

BevapDin added 2 commits May 9, 2020 09:43
Instead of storing it in a public variable, just make the code that uses it (**two** places only) call the function directly.

This also gets rid of the initialization order bug (where the language path was set after the options had been loaded).
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.

When starting files in current directory are scanned recursively
2 participants