Skip to content

Commit b6fa89e

Browse files
alexbatalovicculus
authored andcommitted
Fix directory globbing on Android
1 parent a05aca5 commit b6fa89e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/android/SDL_android.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ bool Android_JNI_FileClose(void *userdata)
18551855

18561856
bool Android_JNI_EnumerateAssetDirectory(const char *path, SDL_EnumerateDirectoryCallback cb, void *userdata)
18571857
{
1858-
SDL_assert((*path == '\0') || (path[SDL_strlen(path) - 1] == '/')); // SDL_SYS_EnumerateDirectory() should have verified this.
1858+
SDL_assert(path != NULL);
18591859

18601860
if (!asset_manager) {
18611861
Internal_Android_Create_AssetManager();

0 commit comments

Comments
 (0)