fs: Fix OpenBSD path retrieval

Set the path start pointer to point to a valid string.
This commit is contained in:
Frank Praznik
2025-08-29 19:03:44 -04:00
parent c0e5fd55d2
commit fdfde42db1

View File

@@ -78,7 +78,7 @@ static char *search_path_for_binary(const char *bin)
char *envr;
size_t alloc_size;
char *exe = NULL;
char *start = envr;
char *start;
char *ptr;
if (!envr_real) {
@@ -86,7 +86,7 @@ static char *search_path_for_binary(const char *bin)
return NULL;
}
envr = SDL_strdup(envr_real);
start = envr = SDL_strdup(envr_real);
if (!envr) {
return NULL;
}