From b6fa89ea74159ceb913437c3de0a5b8b58267ae2 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 4 Aug 2025 19:51:37 +0300 Subject: [PATCH] Fix directory globbing on Android --- src/core/android/SDL_android.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c index 1f9093ef58..887bcb91c0 100644 --- a/src/core/android/SDL_android.c +++ b/src/core/android/SDL_android.c @@ -1855,7 +1855,7 @@ bool Android_JNI_FileClose(void *userdata) bool Android_JNI_EnumerateAssetDirectory(const char *path, SDL_EnumerateDirectoryCallback cb, void *userdata) { - SDL_assert((*path == '\0') || (path[SDL_strlen(path) - 1] == '/')); // SDL_SYS_EnumerateDirectory() should have verified this. + SDL_assert(path != NULL); if (!asset_manager) { Internal_Android_Create_AssetManager();