SDL: ngage: SDL_GetPrefPath allows a NULL `org` parameter.

From 343ad3eddda6df6ba2cef1321299e75168e832a1 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Sat, 5 Jul 2025 12:19:21 -0400
Subject: [PATCH] ngage: SDL_GetPrefPath allows a NULL `org` parameter.

Reference Issue #13322.
---
 src/filesystem/ngage/SDL_sysfilesystem.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/filesystem/ngage/SDL_sysfilesystem.c b/src/filesystem/ngage/SDL_sysfilesystem.c
index bc33a2af0578f..d234bfaafdaee 100644
--- a/src/filesystem/ngage/SDL_sysfilesystem.c
+++ b/src/filesystem/ngage/SDL_sysfilesystem.c
@@ -32,11 +32,11 @@ char *SDL_SYS_GetBasePath(void)
 
 char *SDL_SYS_GetPrefPath(const char *org, const char *app)
 {
-    char *pref_path;
-    if (SDL_asprintf(&pref_path, "C:/System/Apps/%s/%s/", org, app) < 0)
+    char *pref_path = NULL;
+    if (SDL_asprintf(&pref_path, "C:/System/Apps/%s/%s/", org ? org : "SDL_App", app) < 0) {
         return NULL;
-    else
-        return pref_path;
+    }
+    return pref_path;
 }
 
 char *SDL_SYS_GetUserFolder(SDL_Folder folder)