(menu) Remove some implicit memsets
This commit is contained in:
parent
2f2a843d77
commit
d909984e1c
|
@ -77,7 +77,7 @@ static void print_buf_lines(file_list_t *list, char *buf, int buf_size,
|
||||||
type, 0, 0);
|
type, 0, 0);
|
||||||
if (type == MENU_FILE_DOWNLOAD_CORE)
|
if (type == MENU_FILE_DOWNLOAD_CORE)
|
||||||
{
|
{
|
||||||
char core_path[PATH_MAX_LENGTH] = {0};
|
char core_path[PATH_MAX_LENGTH];
|
||||||
char display_name[PATH_MAX_LENGTH] = {0};
|
char display_name[PATH_MAX_LENGTH] = {0};
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
|
@ -252,7 +252,7 @@ static void menu_displaylist_push_perfcounter(
|
||||||
static int menu_displaylist_parse_core_info(menu_displaylist_info_t *info)
|
static int menu_displaylist_parse_core_info(menu_displaylist_info_t *info)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
char tmp[PATH_MAX_LENGTH] = {0};
|
char tmp[PATH_MAX_LENGTH];
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
core_info_t *core_info = global ? (core_info_t*)global->core_info.current : NULL;
|
core_info_t *core_info = global ? (core_info_t*)global->core_info.current : NULL;
|
||||||
|
@ -407,7 +407,7 @@ static int menu_displaylist_parse_core_info(menu_displaylist_info_t *info)
|
||||||
|
|
||||||
static int menu_displaylist_parse_debug_info(menu_displaylist_info_t *info)
|
static int menu_displaylist_parse_debug_info(menu_displaylist_info_t *info)
|
||||||
{
|
{
|
||||||
char tmp[PATH_MAX_LENGTH] = {0};
|
char tmp[PATH_MAX_LENGTH];
|
||||||
|
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
|
@ -447,9 +447,7 @@ static int menu_displaylist_parse_debug_info(menu_displaylist_info_t *info)
|
||||||
static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info)
|
static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info)
|
||||||
{
|
{
|
||||||
int controller;
|
int controller;
|
||||||
char feat_str[PATH_MAX_LENGTH] = {0};
|
char tmp[PATH_MAX_LENGTH], tmp2[PATH_MAX_LENGTH], feat_str[PATH_MAX_LENGTH];
|
||||||
char tmp[PATH_MAX_LENGTH] = {0};
|
|
||||||
char tmp2[PATH_MAX_LENGTH] = {0};
|
|
||||||
const char *tmp_string = NULL;
|
const char *tmp_string = NULL;
|
||||||
const frontend_ctx_driver_t *frontend = frontend_get_ptr();
|
const frontend_ctx_driver_t *frontend = frontend_get_ptr();
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
@ -951,8 +949,7 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
|
||||||
for (i = 0; i < list_size; i++)
|
for (i = 0; i < list_size; i++)
|
||||||
{
|
{
|
||||||
uint32_t core_name_hash;
|
uint32_t core_name_hash;
|
||||||
char fill_buf[PATH_MAX_LENGTH] = {0};
|
char fill_buf[PATH_MAX_LENGTH], path_copy[PATH_MAX_LENGTH];
|
||||||
char path_copy[PATH_MAX_LENGTH] = {0};
|
|
||||||
bool core_detected = false;
|
bool core_detected = false;
|
||||||
const char *core_name = NULL;
|
const char *core_name = NULL;
|
||||||
const char *db_name = NULL;
|
const char *db_name = NULL;
|
||||||
|
@ -1164,9 +1161,9 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LIBRETRODB
|
#ifdef HAVE_LIBRETRODB
|
||||||
unsigned i, j, k;
|
unsigned i, j, k;
|
||||||
|
char path_playlist[PATH_MAX_LENGTH];
|
||||||
content_playlist_t *playlist = NULL;
|
content_playlist_t *playlist = NULL;
|
||||||
database_info_list_t *db_info = NULL;
|
database_info_list_t *db_info = NULL;
|
||||||
char path_playlist[PATH_MAX_LENGTH] = {0};
|
|
||||||
char path_base[PATH_MAX_LENGTH] = {0};
|
char path_base[PATH_MAX_LENGTH] = {0};
|
||||||
char query[PATH_MAX_LENGTH] = {0};
|
char query[PATH_MAX_LENGTH] = {0};
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
|
|
Loading…
Reference in New Issue