From 497b2118ba68019fd4c105129b7cf4888a46386d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 16 May 2026 15:26:47 -0400 Subject: [PATCH] android: Don't forbid paths of "" in the APK assets tree. This would make `SDL_EnumerateDirectory("assets://")` fail. We check for empty strings at the higher level already, before we strip out the "assets://" prefix to pass through the tree. --- src/core/android/SDL_android.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c index 5b886b0ff3..7e97794cb3 100644 --- a/src/core/android/SDL_android.c +++ b/src/core/android/SDL_android.c @@ -1910,10 +1910,6 @@ static const APKNode *FindAPKNode(const char *constpath) { //SDL_Log("FindAPKNode('%s') ...", constpath); - if (*constpath == '\0') { // don't allow paths of "". - return NULL; - } - if (SDL_strncmp(constpath, "assets://", 9) == 0) { constpath += 9; }