From ef604dbeb56ae29d5c1c3e5e9b4b295bdf9cfe11 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 1 Aug 2016 14:04:57 +0200 Subject: [PATCH] (platform_linux.c) Cleanup --- frontend/drivers/platform_linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/drivers/platform_linux.c b/frontend/drivers/platform_linux.c index 7fc0439bc4..806e29cd6e 100644 --- a/frontend/drivers/platform_linux.c +++ b/frontend/drivers/platform_linux.c @@ -546,8 +546,8 @@ static bool device_is_game_console(const char *name) bool test_permissions(const char *path) { - char buf[PATH_MAX_LENGTH]; - bool ret; + bool ret = false; + char buf[PATH_MAX_LENGTH] = {0}; __android_log_print(ANDROID_LOG_INFO, "RetroArch", "Testing permissions for %s\n",path); @@ -626,7 +626,7 @@ static void check_proc_acpi_battery(const char * node, bool * have_battery, bool * charging, int *seconds, int *percent) { const char *base = proc_acpi_battery_path; - char path[1024]; + char path[1024] = {0}; ssize_t length = 0; char *ptr = NULL; char *buf = NULL;