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

Program Crashes on ASTRA OS #10

Open
IkSaElW opened this issue Nov 14, 2024 · 0 comments
Open

Program Crashes on ASTRA OS #10

IkSaElW opened this issue Nov 14, 2024 · 0 comments

Comments

@IkSaElW
Copy link

IkSaElW commented Nov 14, 2024

In the constructor of the CWorkbook class, the function getenv("USERNAME") returns NULL on some Linux OS. To prevent the program from crashing, replace the line:

m_UserName = getenv("USERNAME");

with the following code:

char *userName = getenv("USERNAME");
if (userName != NULL)
    m_UserName = userName;
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

No branches or pull requests

1 participant