mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 12:41:00 +00:00
Prevent implicit memsets
This commit is contained in:
parent
546f01eea3
commit
d38d9f46a6
menu
@ -398,7 +398,7 @@ static int deferred_archive_action(menu_displaylist_info_t *info)
|
||||
static int deferred_push_cursor_manager_list_deferred(
|
||||
menu_displaylist_info_t *info)
|
||||
{
|
||||
char rdb_path[PATH_MAX_LENGTH] = {0};
|
||||
char rdb_path[PATH_MAX_LENGTH];
|
||||
int ret = -1;
|
||||
char *query = NULL;
|
||||
char *rdb = NULL;
|
||||
@ -414,6 +414,8 @@ static int deferred_push_cursor_manager_list_deferred(
|
||||
if (!config_get_string(conf, "rdb", &rdb))
|
||||
goto end;
|
||||
|
||||
rdb_path[0] = '\0';
|
||||
|
||||
fill_pathname_join(rdb_path, settings->path.content_database,
|
||||
rdb, sizeof(rdb_path));
|
||||
|
||||
|
@ -156,7 +156,9 @@ static const char *mui_texture_path(unsigned id)
|
||||
static void mui_context_reset_textures(mui_handle_t *mui)
|
||||
{
|
||||
unsigned i;
|
||||
char iconpath[PATH_MAX_LENGTH] = {0};
|
||||
char iconpath[PATH_MAX_LENGTH];
|
||||
|
||||
iconpath[0] = '\0';
|
||||
|
||||
fill_pathname_application_special(iconpath, sizeof(iconpath),
|
||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_ICONS);
|
||||
@ -823,6 +825,10 @@ static void mui_frame(void *data)
|
||||
menu_display_ctx_clearcolor_t clearcolor;
|
||||
menu_animation_ctx_ticker_t ticker;
|
||||
menu_display_ctx_draw_t draw;
|
||||
char msg[256];
|
||||
char title[256];
|
||||
char title_buf[256];
|
||||
char title_msg[256];
|
||||
|
||||
#ifdef VITA
|
||||
uint32_t black_opaque_54 = 0x8a000000;
|
||||
@ -860,10 +866,6 @@ static void mui_frame(void *data)
|
||||
mui_handle_t *mui = (mui_handle_t*)data;
|
||||
uint64_t *frame_count = video_driver_get_frame_count_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
char msg[256] = {0};
|
||||
char title[256] = {0};
|
||||
char title_buf[256] = {0};
|
||||
char title_msg[256] = {0};
|
||||
bool background_rendered = false;
|
||||
bool libretro_running = menu_display_libretro_running();
|
||||
|
||||
@ -882,6 +884,8 @@ static void mui_frame(void *data)
|
||||
if (!mui)
|
||||
return;
|
||||
|
||||
msg[0] = title[0] = title_buf[0] = title_msg[0] = '\0';
|
||||
|
||||
switch (settings->menu.materialui.menu_color_theme)
|
||||
{
|
||||
case MATERIALUI_THEME_BLUE:
|
||||
@ -1190,9 +1194,11 @@ static void mui_frame(void *data)
|
||||
if (mui_get_core_title(title_msg, sizeof(title_msg)) == 0)
|
||||
{
|
||||
int ticker_limit, value_len;
|
||||
char title_buf_msg_tmp[256] = {0};
|
||||
char title_buf_msg[256] = {0};
|
||||
char title_buf_msg_tmp[256];
|
||||
char title_buf_msg[256];
|
||||
size_t usable_width = width - (mui->margin * 2);
|
||||
|
||||
title_buf_msg_tmp[0] = title_buf_msg[0] = '\0';
|
||||
|
||||
snprintf(title_buf_msg, sizeof(title_buf), "%s (%s)",
|
||||
title_buf, title_msg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user