Skip to content

Conversation

@hdijkema
Copy link
Contributor

Fixed problem with array allocation for executables array.
MAX_BROWSER_FILES needed to be 5. Also initialized all
array entries to NULL before assigning executable names.

hdijkema and others added 3 commits October 17, 2025 23:47
MAX_BROWSER_FILES needed to be 5. Also initialized all
array entries to NULL before assigning executable names.

Signed-off-by: Hans Dijkema <hans@dijkewijk.nl>
Signed-off-by: Hans Dijkema <hans@dijkewijk.nl>
Removed unnecessary initialization loop for executables array.
@AlbertShown AlbertShown merged commit 3ac44c8 into webui-dev:main Oct 20, 2025
2 of 16 checks passed
@hdijkema
Copy link
Contributor Author

Nice, after so many years of C/C++ programming I still didn't know that char *a[N] = { 0 } will initialize the complete array to 0.

@hdijkema hdijkema deleted the array-too-small branch October 21, 2025 08:26
@AlbertShown
Copy link
Member

Yes, it's a standard ANSI C since 1999 👍

@hdijkema
Copy link
Contributor Author

Working with C since 1988 😖

@AlbertShown
Copy link
Member

That's totally fine, and thank you @hdijkema for your recent fixes and improvements 👍

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