Don't Remove First Argument if There is None on webOS

This commit is contained in:
Mariotaku 2025-06-17 18:33:34 +09:00 committed by GitHub
parent 0e4136537b
commit 5907714842
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -5932,7 +5932,7 @@ int rarch_main(int argc, char *argv[], void *data)
if(getenv("XDG_RUNTIME_DIR") == NULL) {
setenv("XDG_RUNTIME_DIR", "/tmp/xdg", 0);
}
struct rlimit limit = {0, 0};
setrlimit(RLIMIT_CORE, &limit);
#endif
@ -7051,7 +7051,7 @@ static bool retroarch_parse_input_and_config(
BSV_MOVIE_ARG NETPLAY_ARG DYNAMIC_ARG FFMPEG_RECORD_ARG CONFIG_FILE_ARG;
#if defined(WEBOS)
if (argv[1][0] == '{')
if (argc > 1 && argv[1][0] == '{')
{
argv = &(argv[1]);
argc = argc - 1;