diff --git a/frontend/drivers/platform_orbis.c b/frontend/drivers/platform_orbis.c index 36665f3b9c..85672ea258 100644 --- a/frontend/drivers/platform_orbis.c +++ b/frontend/drivers/platform_orbis.c @@ -81,8 +81,7 @@ #define MODULE_PATH "/data/self/system/common/lib/" #define MODULE_PATH_EXT "/app0/sce_module/" -char eboot_path[512]; -char user_path[512]; +static char eboot_path[512] = {0}; SceKernelModule s_piglet_module; SceKernelModule s_shacc_module; @@ -105,6 +104,7 @@ static void frontend_orbis_get_env(int *argc, char *argv[], void *args, void *params_data) { unsigned i; + char user_path[512]; struct rarch_main_wrap *params = NULL; strlcpy(eboot_path, EBOOT_PATH, sizeof(eboot_path)); diff --git a/frontend/drivers/platform_ps2.c b/frontend/drivers/platform_ps2.c index 6c114d8fbd..5c3d25d448 100644 --- a/frontend/drivers/platform_ps2.c +++ b/frontend/drivers/platform_ps2.c @@ -61,11 +61,11 @@ #endif static enum frontend_fork ps2_fork_mode = FRONTEND_FORK_NONE; -static char cwd[FILENAME_MAX]; -static char mountString[10]; -static char mountPoint[50]; -static int hdd_mounted = 0; -static int pfsModuleLoaded = 0; +static char cwd[FILENAME_MAX] = {0}; +static char mountString[10] = {0}; +static char mountPoint[50] = {0}; +static int hdd_mounted = 0; +static int pfsModuleLoaded = 0; static void create_path_names(void) { diff --git a/frontend/drivers/platform_psp.c b/frontend/drivers/platform_psp.c index 88781fafbd..17b62216fc 100644 --- a/frontend/drivers/platform_psp.c +++ b/frontend/drivers/platform_psp.c @@ -78,12 +78,11 @@ PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER|THREAD_ATTR_VFPU); #endif #ifdef SCE_LIBC_SIZE -unsigned int sceLibcHeapSize = SCE_LIBC_SIZE; +unsigned int sceLibcHeapSize = SCE_LIBC_SIZE; #endif -char eboot_path[512]; -char user_path[512]; - +static char eboot_path[512] = {0}; +static char user_path[512] = {0}; static enum frontend_fork psp_fork_mode = FRONTEND_FORK_NONE; static void frontend_psp_get_env_settings(int *argc, char *argv[],