Fix NULL pointer dereference in SDL_GlobStorageDirectory
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled

(cherry picked from commit fc6f97f162)
This commit is contained in:
bleeqer
2025-11-02 08:56:14 -08:00
committed by Sam Lantinga
parent 11fc77b704
commit 0c2e3308a5
+1 -1
View File
@@ -79,7 +79,7 @@ static bool GENERIC_EnumerateStorageDirectory(void *userdata, const char *path,
char *fullpath = GENERIC_INTERNAL_CreateFullPath((char *)userdata, path);
if (fullpath) {
wrap_data.base_len = SDL_strlen((char *)userdata);
wrap_data.base_len = userdata ? SDL_strlen((char *)userdata) : 0;
wrap_data.real_callback = callback;
wrap_data.real_userdata = callback_userdata;