mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Prevent warnings
This commit is contained in:
parent
bc5349061f
commit
1f6b90a4f9
@ -175,16 +175,16 @@ int CreateSubfolder(const char * fullpath)
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
char *ptr;
|
||||||
char parentpath[strlen(dirnoslash)+2];
|
char parentpath[strlen(dirnoslash)+2];
|
||||||
size_t copied = strcpy(parentpath, dirnoslash);
|
strcpy(parentpath, dirnoslash);
|
||||||
char * ptr = strrchr(parentpath, '/');
|
ptr = strrchr(parentpath, '/');
|
||||||
|
|
||||||
if (!ptr)
|
if (!ptr)
|
||||||
{
|
{
|
||||||
struct stat filestat;
|
|
||||||
/* Device root directory (must be with '/') */
|
/* Device root directory (must be with '/') */
|
||||||
parentpath[copied] = '/';
|
struct stat filestat;
|
||||||
parentpath[copied+1] = '\0';
|
strcat(parentpath, "/");
|
||||||
|
|
||||||
if (stat(parentpath, &filestat) == 0)
|
if (stat(parentpath, &filestat) == 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user