mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 10:20:29 +00:00
path must have at least one character
This commit is contained in:
parent
a5184ba1ef
commit
aa0d0808c6
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@ static inline void InitProgramExecutableNameImpl(void) {
|
||||||
*/
|
*/
|
||||||
if ((!IsNetbsd() && !IsOpenbsd() && !IsXnu()) /* any others? */ ||
|
if ((!IsNetbsd() && !IsOpenbsd() && !IsXnu()) /* any others? */ ||
|
||||||
0 != strncmp(DEV_FD, __program_executable_name, sizeof(DEV_FD) - 1) ||
|
0 != strncmp(DEV_FD, __program_executable_name, sizeof(DEV_FD) - 1) ||
|
||||||
|
!__program_executable_name[sizeof(DEV_FD) - 1] ||
|
||||||
__program_executable_name[sizeof(DEV_FD) - 1] == '.' ||
|
__program_executable_name[sizeof(DEV_FD) - 1] == '.' ||
|
||||||
strchr(__program_executable_name + sizeof(DEV_FD) - 1, '/')) {
|
strchr(__program_executable_name + sizeof(DEV_FD) - 1, '/')) {
|
||||||
goto UseEmpty;
|
goto UseEmpty;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue