From df1474b46e65e00acef2fc4a490d0e94fc65e686 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 8 Jan 2022 11:55:10 +0300
Subject: [PATCH] psp/SDL_sysfilesystem.c: fixed a minor compiler warning.
src/filesystem/psp/SDL_sysfilesystem.c: In function 'SDL_GetPrefPath':
src/filesystem/psp/SDL_sysfilesystem.c:71: warning: passing argument 1 of 'free' discards qualifiers from pointer target type
---
src/filesystem/psp/SDL_sysfilesystem.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/filesystem/psp/SDL_sysfilesystem.c b/src/filesystem/psp/SDL_sysfilesystem.c
index b5bfc141ac8..e9c6ee49e62 100644
--- a/src/filesystem/psp/SDL_sysfilesystem.c
+++ b/src/filesystem/psp/SDL_sysfilesystem.c
@@ -51,7 +51,7 @@ SDL_GetPrefPath(const char *org, const char *app)
{
char *retval = NULL;
size_t len;
- const char *base = SDL_GetBasePath();
+ char *base = SDL_GetBasePath();
if (!app) {
SDL_InvalidParamError("app");
return NULL;
@@ -62,7 +62,7 @@ SDL_GetPrefPath(const char *org, const char *app)
len = SDL_strlen(base) + SDL_strlen(org) + SDL_strlen(app) + 4;
retval = (char *) SDL_malloc(len);
-
+
if (*org) {
SDL_snprintf(retval, len, "%s%s/%s/", base, org, app);
} else {