mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-17 19:48:51 +00:00
fs: Fix OpenBSD path retrieval
Set the path start pointer to point to a valid string.
This commit is contained in:
parent
c0e5fd55d2
commit
fdfde42db1
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue