Skip to content

Fix : Correct export_env array iteration in system.c - #12

Open
T1anjiu wants to merge 1 commit into
michael105:masterfrom
T1anjiu:fix/p0-1-startup-crash
Open

Fix : Correct export_env array iteration in system.c#12
T1anjiu wants to merge 1 commit into
michael105:masterfrom
T1anjiu:fix/p0-1-startup-crash

Conversation

@T1anjiu

@T1anjiu T1anjiu commented Jul 29, 2026

Copy link
Copy Markdown
  • Fixed incorrect 2D array cast to 1D pointer array
  • Changed from pointer iteration to proper 2D array indexing
  • Prevents setenv() crash when NULL is passed as value
  • Tested: program starts without crash, environment variables set correctly

- Fixed incorrect 2D array cast to 1D pointer array
- Changed from pointer iteration to proper 2D array indexing
- Prevents setenv() crash when NULL is passed as value
- Tested: program starts without crash, environment variables set correctly
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.

1 participant